Skip to main content
POST
/
v1
/
agents
/
import
Import an agent from AGENTS.md
curl --request POST \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agents_md": "---\nname: \"_test_import_export_agent\"\ndescription: \"A test agent for import/export round-trip\"\nmodel: \"gpt-4o-mini\"\ntemperature: 0.7\nmax_tokens: 2048\n---\n\nYou are a test assistant created via AGENTS.md import.\n"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "status": "draft",
  "serviceAccountId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "imported": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Body

application/json
agents_md
string
required

Full AGENTS.md document (front matter + markdown).

Maximum string length: 200000

Response

Agent imported.

Slim record returned on agent create / import.

id
string
name
string
status
enum<string>
Available options:
draft
serviceAccountId
string
createdAt
string<date-time>
imported
boolean
Example:

true