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:
| Action | Permission |
|---|---|
| View operations, view details, search | cidaas:webapis_read |
| Create and edit operations | cidaas:webapis_write |
| Delete operations | cidaas:webapis_delete |
Open the Web API registry in Trustdesk
- In Trustdesk, go to Integrations > Web APIs.
- The Web API Registry page lists all operations as cards. Use the search bar to find an operation.
Create an operation
- Select Create Operation.
- 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.
- Enter a Display name. Optionally enter a Description.
- Enter the Endpoint URL and choose the HTTP method. The form preselects POST.
- Optional: enter Required scopes.
- Under API access, choose the access type and fill in its fields. See Fields.
- Select Create Operation. The button stays disabled until the form is valid.
Fields
| Field | API field | Required | Description |
|---|---|---|---|
| Operation ID | operationId | Yes, on create | Unique 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 name | displayName | Yes | Short label shown in the list and in the details. |
| Description | description | No | Note for administrators, for example the purpose or owner. Not used when the operation is called. |
| Endpoint URL | communicationEP | Yes | Full URL of your API endpoint, including the path. Must be a valid URL. |
| HTTP method | httpMethod | Yes | Method used for the call: GET, POST, PUT, PATCH, DELETE or OPTIONS. |
| Required scopes | requiredScopes | No | Optional scopes for cidaas client credentials. Only needed when your endpoint requires cidaas scopes. |
| API access | apiAccess | Yes | How cidaas authenticates the call to your endpoint: API Key, TOTP or cidaas OAuth. |
API Key
| Field | API field | Required | Description |
|---|---|---|---|
| Placement | apikey_placement | Yes | Header or Query. Where the key is sent. The default is Header. |
| Parameter name | apikey_placeholder | Yes | Name of the header or query parameter that carries the key. |
| API key | apikey | Yes | The key that your API expects. cidaas uses it only when it makes the call. |
TOTP
| Field | API field | Required | Description |
|---|---|---|---|
| Placement | totp_placement | Yes | Header or Query. Where the one-time code is sent. The default is Header. |
| Parameter name | totp_placeholder | Yes | Name of the header or query parameter that carries the one-time code. |
| TOTP key | totpkey | Yes | The 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
| Field | API field | Required | Description |
|---|---|---|---|
| Client | client_id | Yes | The 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.
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
Please contact us directly on our support page or reach out to cidaas support at [email protected].