Docs Rizler

V2 Agents

V2 Import Agent

POSThttps://app.rizzdial.com/api/ai/agent/v2/import
V2 Import Agent
curl --request POST \
  --url https://app.rizzdial.com/api/ai/agent/v2/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_data": {}
}'
{
  "message": "Agent imported successfully",
  "success": true,
  "agent_id": "agent_123",
  "agent_version": "V2"
}

V2 Import Agent#

Creates a V2 agent from an Export Agent JSON body. Send that object directly, or wrap it in agent_data or data. A V1 export is rejected. Use POST /api/ai/agent/v1/import for V1.

Authorizationstringheaderrequired

Bearer token in the format: Bearer {access_token}

agent_dataobjectbody

Export Agent JSON. You can also send that object as the raw body, or wrap it in data.

curl --request POST \
  --url https://app.rizzdial.com/api/ai/agent/v2/import \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --header 'Content-Type: application/json' \
  --data '{"agent_data":{}}'
successboolean

true when the agent is created

messagestring

Agent imported successfully

agent_idstring

Public id of the new agent

agent_versionstring

V2