Where a person types the credentials of an agent's calls
Answers a link to a page where a person fills in or replaces the credential headers of the agent's actions, and which of those headers are set. It never answers a value, not even masked: a credential reaches the agent typed by a person on that page, never through this API or a chat.
Hand the link to the person. They open it with their own Landbot session, and need the permission to edit bots there, in the brand that owns the agent. The link is the same for everyone and does not expire: the page reads the actions when it is opened and again when it is sent. A field left empty keeps its value, and one typed over a set header replaces it.
A credential follows its action only while the action keeps its scheme, host and port. The page shows the host each action calls, and saves nothing if an action given a value has moved to another one, lost that header or gone since the page was opened. An action moved afterwards needs its credentials typed again.
Needs the permission to view bots. Does not count against your brand's write limit.
Path Parameters
- Type: stringFormat: uuidagent
_id requiredThe agent, as
assistantIdnames it in anai_agentblock, in lowercase.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://api.landbot.io/v3/ai-agents/123e4567-e89b-12d3-a456-426614174000/rest_api_actions/credentials \
--cookie 'sessionid=YOUR_SECRET_TOKEN'
{
"data": {
"url": "https://app.landbot.io/ai-agents/f40cf17c-86c7-4b3c-8555-20edfddab23c/credentials/",
"credentials": [
{
"action": "string",
"header": "string",
"method": "GET",
"host": "api.example.com",
"set": true
}
]
}
}