How it works
The API skill lets your own apps talk to this agent. For example, you can send it a customer’s question from your app and show the reply, or pull conversation history into your own system. You’ll need a developer to set it up.
Video overview
Key features
Prerequisites
Before changing this skill, arrange a developer and authorized credentials generated in raia CX, not raia Command.
Configuration
Use Create API Key to create a credential for an approved integration. Enter Name and Expiration date, then select Create key. Store the one-time value privately before Done; the list only shows a masked preview. Use Revoke when access should end.
Troubleshoot authentication
For GET https://api.raia2.com/external/agents/by-api-key, send Agent-Secret-Key: YOUR_KEY from your server. If the response is HTTP 403 INVALID_CREDENTIALS, check that the key is present, belongs to the intended agent and is not revoked. Never put the secret in a browser or shared log.
How to configure it
In raia CX, open Agents, select the intended agent, then open Skills.
- 01
Add the API skill if it isn’t on the agent yet, then open it with Edit (pencil). The worked example below shows each screen.
Worked example
The examples use fictional data. Follow the same checks with approved, non-sensitive information for your own task.
If API is not on the agent yet, open Add skill and select + on the API card.
API in Add skill, before adding. - Highlight 1: + (add API)
Once added, select Edit (pencil) on the API card. Adding the skill does not create a key.
Added API card. - Highlight 1: Edit (pencil)
- 02
Select Create API Key, enter a Name and Expiration date, then Create key. The key is shown only once, so copy it somewhere private before you select Done.
With no keys yet, the list is empty. Select Create API Key.
API skill with no keys yet. - Highlight 1: Create API Key
- Highlight 2: No API keys yet
Enter a Name that identifies where the key will be used and choose an Expiration date, then Create key. Choose a lifetime that fits your team’s policy and plan how to replace the key before it expires.
Enter a Name and choose an Expiration date before Create key. - Highlight 1: Name
- Highlight 2: Expiration date
- Highlight 3: Create key
The full key is shown once with Save your key now - it will never be shown again. Copy it into a private password manager or secret store before you select Done. Never share the key in chat, documentation or screenshots.
Store the one-time key privately before Done. - Highlight 1: Save your key now - it will never be shown again.
- 03
To stop using a key, select Revoke. Next, see the API documentation (https://api.raia2.com/api/external/docs) for the requests you can make, like sending a message or getting conversations. Recommended test: make one request with test data and check the response, including that a revoked key is refused.
After Done, the list shows only a masked Key preview with Status, Expires and Created. It cannot reveal the full key again; if you lost it, create a new key and revoke the old one.
The key list shows a masked preview, not the full secret. - Highlight 1: Key preview (masked)
- Highlight 2: Active
- Highlight 3: Revoke
To stop using a key, select Revoke and reopen the list to check Revoked. Update the application’s stored credential if it needs a replacement, and check that a request using the old key is refused. See the API documentation (https://api.raia2.com/api/external/docs) for the request and authentication header.
A revoked key remains listed with its Revoked status. - Highlight 1: Revoked key status
- Highlight 2: Delete (only remaining action)
