Skip to main content
Version: Latest (4.1.0)

Web API Registry

The Web API registry stores the connection details of your own APIs. Each registered call is an operation. An automated custom task refers to an operation by its ID. cidaas makes the call with the stored credentials and maps the response into the user journey.

What the Web API registry is used for​

  • Keep the endpoint, HTTP method and credentials of each of your APIs in one place.
  • Let automated custom tasks call your API during a user journey, for example to check a customer number.
  • Keep credentials on the server. End users and the user journey never see them.

Permissions​

To manage operations in Trustdesk, your user needs the role SECONDARY_ADMIN, or membership in a group of type DeveloperGT (Developer Portal).

API calls need one of these permissions:

ActionPermission
View operations, view details, searchcidaas:webapis_read
Create and edit operationscidaas:webapis_write
Delete operationscidaas:webapis_delete

Open the Web API registry in Trustdesk​

  1. In Trustdesk, go to Integrations > Web APIs.
  2. The Web API Registry page lists all operations as cards. Use the search bar to find an operation.

Create an operation​

  1. Select Create Operation.
  2. In Operation ID, keep the generated ID, which is a UUID, or enter your own. Use only lowercase letters, numbers and hyphens, for example crm-sync. The ID cannot be changed after creation.
  3. Enter a Display name. Optionally enter a Description.
  4. Enter the Endpoint URL and choose the HTTP method. The form preselects POST.
  5. Optional: enter Required scopes.
  6. Under API access, choose the access type and fill in its fields. See Fields.
  7. Select Create Operation. The button stays disabled until the form is valid.

Fields​

FieldAPI fieldRequiredDescription
Operation IDoperationIdYes, on createUnique key of the operation within your tenant. Lowercase letters, numbers and hyphens. Cannot be changed after creation. Automated custom tasks refer to the operation with this ID.
Display namedisplayNameYesShort label shown in the list and in the details.
DescriptiondescriptionNoNote for administrators, for example the purpose or owner. Not used when the operation is called.
Endpoint URLcommunicationEPYesFull URL of your API endpoint, including the path. Must be a valid URL.
HTTP methodhttpMethodYesMethod used for the call: GET, POST, PUT, PATCH, DELETE or OPTIONS.
Required scopesrequiredScopesNoOptional scopes for cidaas client credentials. Only needed when your endpoint requires cidaas scopes.
API accessapiAccessYesHow cidaas authenticates the call to your endpoint: API Key, TOTP or cidaas OAuth.

API Key​

FieldAPI fieldRequiredDescription
Placementapikey_placementYesHeader or Query. Where the key is sent. The default is Header.
Parameter nameapikey_placeholderYesName of the header or query parameter that carries the key.
API keyapikeyYesThe key that your API expects. cidaas uses it only when it makes the call.

TOTP​

FieldAPI fieldRequiredDescription
Placementtotp_placementYesHeader or Query. Where the one-time code is sent. The default is Header.
Parameter nametotp_placeholderYesName of the header or query parameter that carries the one-time code.
TOTP keytotpkeyYesThe shared secret. cidaas generates a short-lived one-time code from it for each call. cidaas uses it only when it makes the call.

cidaas OAuth​

FieldAPI fieldRequiredDescription
Clientclient_idYesThe cidaas app that cidaas uses to request an access token for the call. Select it from the list. The app must be non-interactive, owned by the client, and its only grant type must be client credentials. cidaas checks this when you save; the operation is not saved otherwise.

Manage operations​

Each operation is shown as a card. The card has an Edit button and a menu with View Details and Delete Operation.

View details​

The details dialog shows the Operation ID, Display name, Description, Endpoint URL, HTTP method, Required scopes, the API access type, and the creation and last update times. Credentials are not shown.

Edit an operation​

Select Edit. The Operation ID is locked. The stored credentials are filled in, so you can review or change them. Select Update Operation to save your changes.

Delete an operation​

Open the card menu and select Delete Operation, then confirm in the dialog. A deleted operation cannot be restored.

Check before you delete

Deletion is not blocked if a user journey still uses the operation. Make sure that no active user journey still refers to the operation before you delete it.

Security best practices​

  • Point each operation at an endpoint that can do only what that step needs. A lookup should call an endpoint that reads data and cannot change it.
  • Use separate operations for staging and production, each with its own credentials.
  • Rotate the credentials regularly.
  • Limit access as described in Permissions to the people who need it.

API reference​

Need Support?

Please contact us directly on our support page or reach out to cidaas support at [email protected].