CalryOTA Docs
Integration Account

Create integration account

Creates a new integration account. The response type depends on the authentication type specified in the request:

  1. For OAuth authentication (authType: 'OAUTH'):

    • Requires clientRedirectURL in the request
    • Returns CreateIntegrationAccountOAuthResponse with OAuth URL for authorization
    • Includes webhook subscription information
  2. For other authentication methods (authType: 'API_KEY', 'USERNAME_PASSWORD'):

    • Requires appropriate authConfig in the request
    • Returns CreateIntegrationAccountResponse with the created account details
    • May include webhook URLs if manual subscription is required
POST
/api/v1/integration-account

Authorization

x-calry-api-key
x-calry-api-key<token>

In: header

Header Parameters

x-calry-tenant-id?string

Optional tenant ID to specify which tenant to operate as. Controls access to integration accounts. If not provided, the default tenant will be used.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/integration-account" \  -H "Content-Type: application/json" \  -d '{    "name": "My Hostaway Account",    "accountIdentifier": "hostaway-12345",    "provider": "HOSTAWAY",    "authType": "OAUTH"  }'
null
{
  "timestamp": "2025-03-05T11:45:49.631Z",
  "path": "<URL_PATH>",
  "message": "Bad Request",
  "details": []
}
{
  "timestamp": "2025-03-05T11:45:49.631Z",
  "path": "<URL_PATH>",
  "message": "Authentication failed",
  "details": []
}