Skip to main content
PUT
/
api
/
v1
/
calcom
/
agents
/
{agent_id}
/
account
Assign Cal.com Account to Agent
curl --request PUT \
  --url https://api.ravan.ai/api/v1/calcom/agents/{agent_id}/account \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "calcom_account_id": "<string>"
}
'
{
  "success": <boolean>,
  "message": "Agent Cal.com account updated",
  "data": {
    "agent_id": "<string>",
    "agent_name": "<string>",
    "calcom_account_id": "<string>"
  }
}

Authorizations

Authorization
string
required
Your JWT access token. Pass it as a Bearer token in the Authorization header. Example: Authorization: Bearer <token>.

Path Parameters

agent_id
string
required
The agent UUID to link or unlink from an org-level Cal.com account.

Query Parameters

org_id
string
Optional fallback organization ID. It is used only when the JWT claims do not already include the org context.

Body

calcom_account_id
string
The org-level Cal.com account ID to link to the agent. Send null to unlink the current account from the agent.

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
object
Updated agent Cal.com account assignment.
{
  "success": <boolean>,
  "message": "Agent Cal.com account updated",
  "data": {
    "agent_id": "<string>",
    "agent_name": "<string>",
    "calcom_account_id": "<string>"
  }
}
{
  "success": false,
  "message": "<string>",
  "code": "INVALID_REQUEST"
}
{
  "success": false,
  "message": "<string>"
}
{
  "success": false,
  "message": "<string>",
  "code": "NOT_FOUND"
}
{
  "success": false,
  "message": "<string>",
  "code": "CONFLICT"
}
{
  "success": false,
  "message": "<string>",
  "code": "INTERNAL_ERROR"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

Agent UUID

Query Parameters

org_id
string

Fallback organization ID used only when not present in JWT claims

Body

application/json
calcom_account_id
string | null

Org-level Cal.com account UUID, or null to unlink

Response

Agent Cal.com account updated

success
boolean
message
string
data
object
Example:
{
  "agent_id": "<string>",
  "agent_name": "<string>",
  "calcom_account_id": "<string>"
}