API ReferenceApi claw embed

Create embed URL

API documentation for Create embed URL

POST
/api/v1/spaces/{spaceId}/agents/{agentId}/embed-urls

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication.

In: header

Path Parameters

spaceId*string
agentId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://loading/api/v1/api/v1/spaces/string/agents/string/embed-urls" \  -H "Content-Type: application/json" \  -d '{    "externalUserId": "string"  }'
{
  "embedUrl": "string",
  "sessionId": "string",
  "agentId": "string",
  "spaceId": "string",
  "expiresAt": "string",
  "api": {
    "statusUrl": "string",
    "messagesUrl": "string"
  }
}
{
  "defined": true,
  "code": "BAD_REQUEST",
  "status": 400,
  "message": "Bad Request",
  "data": {
    "error": "string"
  }
}
{
  "defined": true,
  "code": "UNAUTHORIZED",
  "status": 401,
  "message": "Unauthorized",
  "data": {
    "error": "string"
  }
}
{
  "defined": true,
  "code": "FORBIDDEN",
  "status": 403,
  "message": "Forbidden",
  "data": {
    "error": "string"
  }
}
{
  "defined": true,
  "code": "NOT_FOUND",
  "status": 404,
  "message": "Not Found",
  "data": {
    "error": "string"
  }
}