Skip to main content

Create Link

Creates a new link within the workspace.

HTTP Request​

POST https://dev.calry.app/api/v1/link

Headers​

HeaderValue
AuthorizationBearer YOUR_ACCESS_TOKEN
Content-Typeapplication/json

Request Body​

The request body should be a JSON object containing the following fields:

FieldRequiredTypeDescription
integrationDefinitionKeyYesstringIntegration definition key you want to restrict the link to a specific integration.
expiresInYesnumberLink expires after the specified seconds.
linkNameYesstringName of the link, used to easily search for it in UI.
workspaceIdYesstringUnique identifier used to identify all the other resources.
accountIdentifierYesstringIdentifier for the account from your system.
redirectUrlYesstringURL to redirect the user after the authentication process.

Integration Definition Keys:​

Integration NameIntegration Definition Key
OwnerRezownerrez
Hostawayhostaway
Hostfullyhostfully
Hostfully Sandboxhostfully-sandbox
Guestyguesty
Lodgifylodgify
Beds24beds24
Hostifyhostify
Smoobusmoobu
Uplistinguplisting
Lodgixlodgix
Tokeettokeet
Hospitablehospitable
Hostexhostex
Elinaelina
SUCCEEDED = 'SUCCEEDED',
FAILED = 'FAILED',
PENDING = 'PENDING',

Example cURL Request​

curl --location 'https://dev.calry.app/api/v1/link' \
--header 'Authorization: Bearer eyJraWQiOiJzLTc2Mjc5OGM2LTkzYmEtNGNhMC1hZDNlLWEwMWM2ODIyODMyNiIsInR5cCI6IkpXVCIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAvYXV0aCIsInVzZXJJZCI6IjY5MmZiYTg2LTJkMzgtNDAzOC04MWY2LTBkZmVkYWRkY2Q5YiIsIndvcmtzcGFjZUlkIjoiNzNhYTUwZGUtMGNiMi00ZjRlLTk5YjctN2JmMzdmMjU3Y2E2IiwibmFtZSI6IndlZnJ3ZSIsInNvdXJjZSI6Im1pY3Jvc2VydmljZSIsImlhdCI6MTcwNjI4ODQ1OCwiZXhwIjoxNzI4NTEwNjgwfQ.Z4bZJuRBQymkSmZoQzqjwjOTxqpzJVLcSV_DLBHMSv61bgZy3lr-ZMz61drgoAWaH8pXb77sw8mfTCfyVc_2RCxeMeKQJMPBeGyivS4IUyc0N-fBdEeTGb5bff6AVC-YGPPOIWpM2dRpye7pX5B2V_9CUcEi9ZMKxWLJTKr5uHpIkUBQfXg35HcRfvaNVl8CPzc7GfRq7aBK-YtT-9DUDsYvlRXM0FQcqiwgoR4pNeTZh7VvYOhgNAaaJo-Zm5SvLkUnlRG6eHcg6pYe0Ackv5ZZLAzyIAMVXHVUdwuwYUjqE7cLEDSMtSWdeMxs0RiJc2a19XPF8TxhnQNy7485xQ' \
--header 'Content-Type: application/json' \
--data '{
"integrationDefinitionKey": "ownerrez",
"expiresIn": 3600,
"linkName": "OwnerRez Link",
"workspaceId": "1fe8897a-795c-47e7-ad4a-7adb82027bc7",
"accountIdentifier": "qwert-323433761-4216-9d0f",
"redirectUrl": "https://calry.app"
}'

Response​

{
"linkId": "8eb7f1bc-8364-4239-aa37-1a94bbfc2db5",
"linkName": "OwnerRez Link",
"canExpire": false,
"expiresIn": 3600,
"integrationDefinitionId": "552ccf2b-61f9-4549-b71f-ca9bf5fd7bc1",
"workspaceId": "1fe8897a-795c-47e7-ad4a-7adb82027bc7",
"createdAt": "2024-02-01T10:48:59.159Z",
"updatedAt": "2024-02-01T10:48:59.159Z",
"status": "PENDING",
"accountIdentifier": "qwert-323433761-4216-9d0f",
"redirectUrl": "https://calry.app",
"integrationDefinitionKey": "ownerrez"
}