Credentials

credentials

Methods

Create Credential ->
post/v5/credentials

Create a new credential for storing sensitive data like API keys, tokens, or other secrets.

Get Credential By ID ->
get/v5/credentials/{credential_id}

Retrieve a specific credential by its unique identifier.

Get Credential By Name ->
get/v5/credentials/name/{credential_name}

Retrieve a specific credential by its name.

Get Credential Secret By ID ->
post/v5/credentials/{credential_id}/secret

Retrieve the plaintext payload of a credential by its ID.

Get Credential Secret By Name ->
post/v5/credentials/name/{credential_name}/secret

Retrieve the plaintext payload of a credential by its name.

List Credentials -> CursorPage<>
get/v5/credentials

Retrieve a paginated list of all credentials for the current account with optional name filtering.

query Parameters
ending_before: string
Optional
limit: number
Optional
(maximum: 1000, minimum: 1, default: 100)
name: string
Optional

Filter credentials by name

sort_by: string
Optional
sort_order:
Optional
(default: "asc")
"asc"
"desc"
starting_after: string
Optional
Response fields
has_more: boolean

Whether there are more items left to be fetched.

items: Array<>
total: number

The total of items that match the query. This is greater than or equal to the number of items returned.

limit: number
Optional
(default: 100)

The maximum number of items to return.

object: "list"
Optional
(default: "list")
Request example
200Example
Update Credential ->
patch/v5/credentials/{credential_id}

Update an existing credential's properties including name, description, type, payload, and metadata.

Delete Credential -> { id, deleted, object }
delete/v5/credentials/{credential_id}

Permanently delete a credential and all its associated data.

Domain types

Credential = { id, created_at, created_by_identity_type, 7 more... }
CredentialSecret = { result, object }