Skip to main content
POST
/
v1
/
agents
Create a new agent
curl --request POST \
  --url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "instructions": "You are a helpful test assistant."
}
'
{
  "id": "<string>",
  "name": "<string>",
  "status": "draft",
  "serviceAccountId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

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
instructions
string
required

System prompt / agent instructions.

Maximum string length: 100000
name
string
Maximum string length: 256
description
string
Maximum string length: 4096
model
string
Maximum string length: 128
fallback_models
string[]
temperature
number
profile
enum<string>
Available options:
simple,
workflow,
agent_light,
agent_full,
orchestrator
Maximum string length: 64
skills
object[]
sub_agents
object[]

Sub-agent delegations (max 20).

starters
object[]

Conversation starter prompts (max 10).

Response

Agent created.

Slim record returned on agent create / import.

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