curl --request GET \
--url https://api.bland.ai/v1/widget/{id} \
--header 'authorization: <authorization>'
{
"status": 200,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"pathway_id": "a0f0d4ed-f5f5-4f16-b3f9-22166594d7a7",
"agent_id": "46f37229-7d12-44be-b343-6e68274cfbea",
"allowed_domains": ["example.com", "subdomain.example.com"],
"messages_per_minute": 10,
"config": {
"theme": "light",
"position": "bottom-right",
"greeting": "Hello! How can I help you today?"
},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z"
},
"errors": null
}
Retrieves a specific widget by ID.
curl --request GET \
--url https://api.bland.ai/v1/widget/{id} \
--header 'authorization: <authorization>'
{
"status": 200,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"pathway_id": "a0f0d4ed-f5f5-4f16-b3f9-22166594d7a7",
"agent_id": "46f37229-7d12-44be-b343-6e68274cfbea",
"allowed_domains": ["example.com", "subdomain.example.com"],
"messages_per_minute": 10,
"config": {
"theme": "light",
"position": "bottom-right",
"greeting": "Hello! How can I help you today?"
},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z"
},
"errors": null
}
id
(string): Widget UUIDpathway_id
(string): Associated pathway UUIDagent_id
(string | null): Associated agent UUID or nullallowed_domains
(string[]): Array of allowed domainsmessages_per_minute
(number): Rate limit for messagesconfig
(object): Widget configuration objectcreated_at
(string): ISO timestampupdated_at
(string): ISO timestamp{
"status": 200,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"pathway_id": "a0f0d4ed-f5f5-4f16-b3f9-22166594d7a7",
"agent_id": "46f37229-7d12-44be-b343-6e68274cfbea",
"allowed_domains": ["example.com", "subdomain.example.com"],
"messages_per_minute": 10,
"config": {
"theme": "light",
"position": "bottom-right",
"greeting": "Hello! How can I help you today?"
},
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z"
},
"errors": null
}
Was this page helpful?