Get Credential Details
Get credential metadata (without decrypted data). This endpoint retrieves stored credential information for a specific integration without exposing sensitive authentication tokens, making it safe for display in management interfaces.
Endpoint
Method: GET
URL: {{base_url}}/api/v1/credentials/{integrationId}/details
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 view credentials.
Headers
| Header | Description | Required |
|---|---|---|
Authorization | Bearer token (JWT) for authentication | Yes |
accept | Specifies acceptable response formats (application/json) | Yes |
x-tenantid | UUID identifying the tenant/organization | Yes |
realmname | The authentication realm name | No |
Path Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
integrationId | string | The unique identifier of the integration | Yes |
Query Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
credentialId | string (UUID) | Credential ID (optional) - use to retrieve a specific credential when multiple exist for an integration | No |
Request Body Schema
Not applicable — this is a GET request with no request body.
Example cURL
curl --request GET \
--url '{{base_url}}/api/v1/credentials/servicenow-prod-001/details' \
--header 'accept: application/json' \
--header 'authorization: Bearer {{access_token}}' \
--header 'x-tenantid: {{tenant_id}}'
With Credential ID:
curl --request GET \
--url '{{base_url}}/api/v1/credentials/servicenow-prod-001/details?credentialId=cred-550e8400-e29b-41d4-a716-446655440001' \
--header 'accept: application/json' \
--header 'authorization: Bearer {{access_token}}' \
--header 'x-tenantid: {{tenant_id}}'
Success Response Example
Status Code: 200 OK
{
"success": true,
"message": "Credential details retrieved successfully",
"data": {
"id": "cred-550e8400-e29b-41d4-a716-446655440001",
"integrationId": "servicenow-prod-001",
"credentialName": "ServiceNow Production",
"description": "OAuth credentials for ServiceNow ITSM production instance",
"authType": "oauth2_bearer",
"scopes": [
"read",
"write"
],
"tokenEndpoint": "https://instance.service-now.com/oauth_token.do",
"authorizationEndpoint": "https://instance.service-now.com/oauth_auth.do",
"metadata": {
"environment": "production",
"instanceUrl": "https://instance.service-now.com",
"version": "tokyo"
},
"status": "active",
"expiresAt": "2025-07-10T14:15:00.000Z",
"isExpired": false,
"createdAt": "2025-07-10T13:15:00.000Z",
"createdBy": {
"id": "1876278a-3634-4833-b73e-1536d806e117",
"name": "Deepak purohit",
"email": "deepak.purohit@rezolve.ai"
},
"updatedAt": "2025-07-10T13:30:00.000Z",
"updatedBy": {
"id": "1876278a-3634-4833-b73e-1536d806e117",
"name": "Deepak purohit",
"email": "deepak.purohit@rezolve.ai"
},
"lastAccessedAt": "2025-07-10T13:45:00.000Z",
"accessCount": 47,
"tenant": {
"id": "{{tenant_id}}",
"name": "{{tenant_name}}"
}
},
"timestamp": "2025-07-10T13:50:00.000Z"
}
This endpoint does not return sensitive data (accessToken, refreshToken, secrets), making it safe for use in admin dashboards and management interfaces.
Error Responses
| Status Code | Error | Description |
|---|---|---|
400 Bad Request | Invalid parameters | Invalid integrationId or credentialId format |
401 Unauthorized | Authentication failed | Bearer token is missing, expired, or invalid |
403 Forbidden | Insufficient permissions | User lacks permission to view credentials |
404 Not Found | Credential not found | No credential exists for the specified integration |
500 Internal Server Error | Server error | Unexpected server-side error |
Example Error Response:
{
"success": false,
"error": {
"code": "CREDENTIAL_NOT_FOUND",
"message": "Credential not found",
"details": "No credential exists for integration ID: servicenow-prod-999"
},
"timestamp": "2025-07-10T13:50:00.000Z"
}
Notes
-
No Sensitive Data: Unlike
GET /credentials/{integrationId}, this endpoint does not return decrypted tokens or secrets. -
Safe for UI: Use this endpoint for displaying credential information in management dashboards and admin interfaces.
-
Expiration Check: The
isExpiredboolean field indicates whether the credential has expired. -
Access Metrics: The
accessCountandlastAccessedAtfields provide usage statistics. -
Multiple Credentials: If multiple credentials exist for an integration, use the
credentialIdquery parameter to retrieve a specific one. -
Status Values: The
statusfield can beactive,inactive,expired, orrevoked. -
Audit Information: Includes
createdBy,updatedBy, and timestamp fields for audit purposes. -
Required Roles: Requires
integration_vieweror higher role to access credential details. -
Related Endpoints:
GET /credentials/{integrationId}— Get credential with decrypted dataPOST /credentials— Store new credentialsPATCH /credentials/{credentialId}— Update credentialDELETE /credentials/{credentialId}— Delete credential