Private drafts

Aiitem Draft API

Save a tool listing or community article from your own script. Edit the private draft in your Aiitem account and publish it when ready.

Manage API keys
Connect a script or assistant
Use the submission guide for the workflow or OpenAPI for the exact request and response fields.
Draft submission guide

Give this file to an assistant that can make HTTP requests. It explains how to check categories, create a draft, and return its review links.

https://aiitem.net/skills/submit-to-aiitem/SKILL.mdOpen file
OpenAPI 3.1

Read the machine-readable schemas for taxonomy lookup, tool drafts, and community post drafts.

https://aiitem.net/openapi.jsonOpen file

Prompt for an assistant

Add the content you want to submit after this prompt. Configure your key in the assistant's environment as AIITEM_API_KEY.

Read https://aiitem.net/skills/submit-to-aiitem/SKILL.md. Save the material below as a private aiitem draft. Use AIITEM_API_KEY from your environment, and ask me to configure it if missing. Return the editUrl and previewUrl. Leave the draft ready for me to review and publish.

From submission to preview

The API creates an entry in your account and returns links to edit and preview it.

01
Create your API key
Store the key when it is displayed and make it available to your script as AIITEM_API_KEY.
02
Choose the kind of draft
Use a tool draft to list a product website. Use a post draft for a guide, walkthrough, or community article.
03
Submit your JSON
Send the listing details or article in English with your key in the Authorization header.
04
Open the preview
Sign in and follow previewUrl to review the draft. Use editUrl to make changes before you publish.
Authentication
Read AIITEM_API_KEY from your environment and send it as a Bearer token. Manage or revoke keys in your account.
Authorization: Bearer $AIITEM_API_KEY

Create a listing or community post

The examples use design and svg from the directory. Replace the sample website and copy before submitting your own content.

Draft a tool listing
POST
Describe what someone can make with the tool, how to use it, and where to find its website.

Endpoint

https://aiitem.net/api/v1/tools/drafts

Required fields

name, website, description (up to 100 characters), and content (200–50,000 characters, with at least 200 readable characters)

Optional fields

Add up to three categories and five tags. Include at least one category when supplying tags. Aiitem schedules a screenshot of the website.

Example request

curl -fsS -X POST 'https://aiitem.net/api/v1/tools/drafts' \
  -H "Authorization: Bearer ${AIITEM_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'JSON'
{
  "name": "Example SVG Tool",
  "website": "https://example.com",
  "description": "A sample listing for a sketch-to-SVG tool.",
  "content": "Replace this sample with a factual description of your tool. For a sketch-to-SVG workflow, explain which image formats it accepts, how to start tracing, which parts stay editable in the export, and what to check before opening the finished file in a design app.",
  "categories": [
    "design"
  ],
  "tags": [
    "svg"
  ]
}
JSON

Successful response

HTTP 201 creates a draft. Sign in and open previewUrl to review it at /settings/tools/{id}/preview. Use editUrl to make changes.

Draft a community article
POST
Save a workflow tip, walkthrough, or other article in your account for review.

Endpoint

https://aiitem.net/api/v1/posts/drafts

Required fields

title and content (up to 100,000 characters, with at least 200 readable characters)

Optional fields

Add a description and one category slug or ID. The body can include one link to another website. Image uploads and tags are unavailable for post drafts.

Example request

curl -fsS -X POST 'https://aiitem.net/api/v1/posts/drafts' \
  -H "Authorization: Bearer ${AIITEM_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'JSON'
{
  "title": "Check an SVG export before publishing",
  "description": "Three checks for graphics that will be reused on the web.",
  "content": "Open the exported file on light and dark backgrounds to check contrast. Zoom in to look for extra paths near the edges, then reopen the file in your design app and confirm that the shapes remain editable. Finally, test the graphic at the smallest size it will appear on the site.",
  "category": "design"
}
JSON

Successful response

HTTP 201 creates a draft. Sign in and open previewUrl to review it at /settings/posts/{id}/preview. Use editUrl to make changes.

Look up valid categories and tags
Fetch the current directory values before assigning them. Send a slug or ID in categories or tags for a tool listing and in category for a post. Invalid values return HTTP 400.
GET https://aiitem.net/api/taxonomies?type=category
GET https://aiitem.net/api/taxonomies?type=tag
Draft access and publication
The draft stays in the account that issued the key. Publication requires a signed-in session.

Review and publish from Aiitem after signing in.

Submit in English. Community drafts are stored with the English locale.

Revoke a key from your account if it is exposed.