Create a Cal.com integration
Connect a Cal.com event type so an agent can check availability and book meetings during a call. Attach it to an agent with `attachAgentIntegration`.
Reseller keys only: act as one of your clients by its user id. Omit it to act on your own account. [How acting for a client works](/docs/reseller/your-clients/acting-as-clients).
A name for the integration.
Your Cal.com API key.
The Cal.com event type id to book.
IANA time zone for the bookings, such as America/New_York.
curl -X POST 'https://omnidim.io/api/v1/integrations/cal' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "user_id": 1234 }'
{ "success": false, "message": "string", "integration_id": 0, "integration": { "id": 0, "name": "string", "integration_type": "google_sheets", "user_id": 0, "user_name": "string", "organization_id": 0, "organization_name": "string" } }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
application/jsonuser_id?ClientUserIdReseller keys only: act as one of your clients by its user id. Omit it to act on your own account. How acting for a client works.
name*stringA name for the integration.
cal_api_key*stringYour Cal.com API key.
cal_id*stringThe Cal.com event type id to book.
cal_timezone*stringIANA time zone for the bookings, such as America/New_York.
Response body
application/jsonThe integration was created.
application/jsonsuccess?booleanmessage?stringintegration_id?integerUse it as integration_id to attach the integration to an agent.
integration?The new integration. Stored credentials read ********.
