Skip to main content
POST
https://api.0xkey.io
/
public
/
v1
/
query
/
get_oauth2_credential
Get OAuth 2.0 credential
curl --request POST \
  --url https://api.0xkey.io/public/v1/query/get_oauth2_credential \
  --header 'Content-Type: application/json' \
  --header 'X-Stamp: <api-key>' \
  --data '
{
  "organizationId": "<string>",
  "oauth2CredentialId": "<string>"
}
'
{
  "oauth2Credential": {
    "oauth2CredentialId": "<string>",
    "organizationId": "<string>",
    "provider": "OAUTH2_PROVIDER_UNSPECIFIED",
    "clientId": "<string>",
    "encryptedClientSecret": "<string>",
    "createdAt": {
      "seconds": "<string>",
      "nanos": "<string>"
    },
    "updatedAt": {
      "seconds": "<string>",
      "nanos": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.0xkey.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Stamp
string
header
required

Body

application/json
organizationId
string
required

Unique identifier for a given Organization.

oauth2CredentialId
string
required

Unique identifier for a given OAuth 2.0 Credential.

Response

A successful response.

oauth2Credential
object
required