Skip to main content
POST
Import an agent from AGENTS.md

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. Org API keys (iak_*) are not accepted here - they carry no user identity. Use the x-prismeai-api-key header instead (see OrgApiKeyAuth).

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