Skip to main content
POST
/
credentials
Create a credential
curl --request POST \
  --url https://api.deck.co/v2/credentials \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_id": "<string>",
  "auth_method": "<string>",
  "auth_credentials": "<unknown>",
  "external_id": "<string>"
}
'
{
  "id": "<string>",
  "object": "<string>",
  "status": "<string>",
  "external_id": "<string>",
  "source_id": "<string>",
  "auth_method": "<string>",
  "auth_credentials": {
    "username": "<string>",
    "key": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Clerk JWT, client credential JWT, or secret key (sk_live_...)

Body

source_id
string
required
auth_method
null | string
auth_credentials
any
external_id
null | string

Response

Created

id
string
required
object
string
required
status
string
required
external_id
null | string
required
source_id
string
required
auth_method
string
required
auth_credentials
object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
request_id
string
required