Skip to main content
POST
/
api
/
v1
/
workspaces
/
{workspace_id}
/
agents
/
{agent_id}
/
subscriptions
Subscribe Agent
curl --request POST \
  --url https://colloqui-web-develop-btoadh.laravel.cloud/api/v1/workspaces/{workspace_id}/agents/{agent_id}/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "product_id": "01h8xyz123abc456def789ghi"
}
'
{
  "data": {
    "id": 302,
    "workspace_id": "01kqh44c0tyccy2d8jfh342m15",
    "type": "default",
    "stripe_id": "sub_4IRrfQkQH3Ts0YP4euHFtkngezCK8QexmasccDIE",
    "stripe_status": "active",
    "stripe_price": null,
    "quantity": null,
    "trial_ends_at": null,
    "ends_at": null,
    "created_at": "2026-05-01T06:38:01.000000Z",
    "updated_at": "2026-05-01T06:38:01.000000Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.colloqui.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication

Path Parameters

workspace_id
string
required

The ID of the workspace.

agent_id
string
required

The ID of the agent.

Body

application/json
product_id
string
required

The id of an existing record in the products table.

Example:

"01h8xyz123abc456def789ghi"

Response

201 - application/json
data
object