Skip to main content
POST
/
ai
/
api
/
v2
/
conversations
Create Thread
curl --request POST \
  --url https://be.datagol.ai/ai/api/v2/conversations \
  --header 'Content-Type: application/json' \
  --header 'x-auth-token: <api-key>' \
  --data '
{
  "name": "Data Summary Request",
  "agentType": "CustomAgent",
  "uiMetadata": {
    "type": "CustomAgent",
    "parameters": {
      "customAgentId": "1526da2b-3264-4118-b141-87857369b0bd"
    },
    "configuration": {
      "llmModel": "gpt-5.2"
    }
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "scope": "<string>",
  "agentType": "<string>",
  "active": true
}

Authorizations

x-auth-token
string
header
required

For server-to-server or automated access, use a DataGOL Service Account key. Pass it via the x-auth-token header instead of Authorization: x-auth-token: <service-account-key>

Body

application/json
name
string
required

Display name for this conversation.

Example:

"Data Summary Request"

agentType
enum<string>
required

Must be CustomAgent for custom agent conversations.

Available options:
CustomAgent
uiMetadata
object
required

Response

200 - application/json

Conversation created. Contains conversationId for the streaming endpoint.

id
string<uuid>

conversationId — pass to the streaming endpoint.

name
string
scope
string
agentType
string
active
boolean