Skip to content

Get Credential by ID

GET/v5/credentials/{credential_id}

Retrieve a specific credential by its unique identifier.

Path ParametersExpand Collapse
credential_id: string
ReturnsExpand Collapse
Credential object { id, created_at, created_by_identity_type, 7 more }
id: string
created_at: string
formatdate-time
created_by_identity_type: string
created_by_user_id: string
credential_metadata: map[unknown]
description: string
name: string
type: string
updated_at: string
formatdate-time
object: optional string

Get Credential by ID

curl https://api.egp.scale.com/v5/credentials/$CREDENTIAL_ID \
    -H "x-api-key: $SGP_API_KEY"
{
  "id": "id",
  "created_at": "2019-12-27T18:11:19.117Z",
  "created_by_identity_type": "created_by_identity_type",
  "created_by_user_id": "created_by_user_id",
  "credential_metadata": {
    "foo": "bar"
  },
  "description": "description",
  "name": "name",
  "type": "type",
  "updated_at": "2019-12-27T18:11:19.117Z",
  "object": "object"
}
Returns Examples
{
  "id": "id",
  "created_at": "2019-12-27T18:11:19.117Z",
  "created_by_identity_type": "created_by_identity_type",
  "created_by_user_id": "created_by_user_id",
  "credential_metadata": {
    "foo": "bar"
  },
  "description": "description",
  "name": "name",
  "type": "type",
  "updated_at": "2019-12-27T18:11:19.117Z",
  "object": "object"
}