Credentials
Store Credential
Store an API key or bearer token for a service
POST
Overview
Stores a credential (API key or bearer token) for a service so that Danube can authenticate tool executions on your behalf. This is the agent-friendly credential storage endpoint — designed for programmatic use from SDKs and MCP clients. For OAuth credentials, use the dashboard OAuth flow instead. Auth: Requires API key (danube-api-key header).
Body Parameters
UUID of the service to store credentials for
Type of credential:
bearer or api_keyThe actual credential value (API key or bearer token)
Response
Whether the credential was stored successfully
The service the credential is for
Human-readable service name
The type that was stored
Example
MCP Tool
This endpoint is also available as thestore_credential MCP tool:
Notes
- Credentials are encrypted at rest using AES-256
- Only
bearerandapi_keytypes are supported via this endpoint - For OAuth, use the dashboard credential flow at
/dashboard/tools/:serviceId - Storing a new credential for the same service replaces the existing one
