Skip to main content
POST
/
api
/
automation-integration
Create Automation Integration
curl --request POST \
  --url https://api.userintuition.ai/api/automation-integration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hook_url": "https://your-server.com/webhook/user-intuition",
  "assistant_id": "550e8400-e29b-41d4-a716-446655440000"
}
'
{
  "id": "integration-id-123",
  "user_id": "user_123",
  "hook_url": "https://your-server.com/webhook/user-intuition",
  "assistant_id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2024-01-15T16:00:00Z",
  "updated_at": "2024-01-15T16:00:00Z"
}

Authorizations

Authorization
string
header
required

Enter your JWT token. You can obtain this from your User Intuition dashboard.

Body

application/json
hook_url
string<uri>
required

The webhook URL to send call data to

assistant_id
string
required

The assistant ID to associate with this webhook

Response

Automation integration created successfully

id
string
required

Unique identifier for the integration

user_id
string
required

User ID who created this integration

hook_url
string<uri>
required

The webhook URL

assistant_id
string
required

The associated assistant ID

created_at
string<date-time>
required

When the integration was created

updated_at
string<date-time>
required

When the integration was last updated