Before You Start
- Admin rights in your ClarityQ organization.
- The system’s OpenAPI spec (OpenAPI or Swagger), as a
.json,.yamlor.ymlfile up to 5 MB, or a URL to it. - The address of the API. It must be a public address. ClarityQ can’t call a private or local address.
- A way to sign in: an API key, a token, a username and password, or an OAuth app registered in that system.
Add an API App
Open Organization Settings → Apps → API and click Add app. The form has three parts.Details
- Name. What your team sees in chat and in Apps. It must be unique in your organization.
- Address. Where the system’s API lives, for example
https://api.example.com. ClarityQ sends every call here and nowhere else. The app’s picture comes from this address. - Description. Optional. ClarityQ reads it to decide when to use the app, so say what the system holds and what it is for.
- OpenAPI spec. Choose Upload a file or From a URL. After ClarityQ checks it, the form shows how many actions it found. Each operation in the spec becomes one action.
Access
Choose how ClarityQ signs in under Authentication:
With OAuth sign-in, each user clicks Connect in Apps and approves in the other system, and ClarityQ acts as that person. With every other type, one credential is shared and everyone in your organization acts through it.
For a shared credential you can set Expires on. ClarityQ stops using the credential on that date, and users see the app as Not available until an Admin updates it.
Test
Test request is a read call ClarityQ makes to check the connection, written as a path such as/v1/items?limit=1. Leave it empty and ClarityQ picks one from the spec.
- With a shared credential, click Test and turn on. ClarityQ makes the call now. If the system refuses the credential or can’t be reached, the form tells you and nothing is saved.
- With OAuth sign-in, click Save and turn on. The test runs with each user’s own account when they connect.
Reads and Changes
ClarityQ sorts the actions of an API by their HTTP method:GETandHEADare Read. They look things up. Nothing changes in your system.POST,PUT,PATCHandDELETEare Change.
Manage an API App
Each app in the list has an on/off switch and a ⋯ menu:- Edit. Change the details, the spec, or the sign-in. Saved secrets show masked. Leave one as it is to keep it, or click the edit icon to type a new one.
- What ClarityQ may do. Change what the app may read and change.
- Remove. Removes the app for everyone and deletes its stored credentials.
API apps can be used in chats and by workflow agents. They can’t be added to scheduled tasks.