Store Credentials
Store encrypted credentials for third-party integrations. This endpoint securely saves authentication credentials in the credential vault, supporting 8 different authentication types for various integration scenarios.
Endpoint
Method: POST
URL: {{base_url}}/api/v1/credentials
Authentication
This endpoint uses Bearer Token authentication via a JWT (JSON Web Token). The token must be included in the Authorization header. Requires appropriate permissions to manage credentials.
Headers
| Header | Description | Required |
|---|---|---|
Authorization | Bearer token (JWT) for authentication | Yes |
accept | Specifies acceptable response formats (application/json) | Yes |
content-type | Must be application/json | Yes |
x-tenantid | UUID identifying the tenant/organization | Yes |
realmname | The authentication realm name | No |
Path Parameters
None.
Query Parameters
None.
Request Body Schema
| Field | Type | Description | Required |
|---|---|---|---|
integrationId | string | Unique identifier for the integration | Yes |
credentialName | string | Human-readable name for the credential | Yes |
description | string | Description of the credential's purpose | No |
expiresIn | number | Token expiration time in seconds | No |
scopes | array | List of permission scopes for the credential | No |
tokenEndpoint | string | OAuth token endpoint URL | No |
authorizationEndpoint | string | OAuth authorization endpoint URL | No |
metadata | object | Additional custom properties for the credential | No |
authType | string | Authentication type (see supported types below) | Yes |
accessToken | string | The access token to store | No |
refreshToken | string | The refresh token to store | No |