Skip to main content
POST
/
public
/
v1
/
query
/
get_oauth2_credential

Authorizations

  • API Key
  • WebAuthn (Passkey)
X-Stamp
string
required
Cryptographically signed (stamped) request to be passed in as a header. For more info, see here.

Body

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 returns the following fields:
oauth2Credential
object
required
oauth2Credential field
curl --request POST \
  --url https://api.turnkey.com/public/v1/query/get_oauth2_credential \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header "X-Stamp: <string> (see Authorizations)" \
  --data '{
    "organizationId": "<string>",
    "oauth2CredentialId": "<string>"
}'
{
  "oauth2Credential": {
    "oauth2CredentialId": "<string>",
    "organizationId": "<string>",
    "provider": "<OAUTH2_PROVIDER_X>",
    "clientId": "<string>",
    "encryptedClientSecret": "<string>",
    "createdAt": {
      "seconds": "<string>",
      "nanos": "<string>"
    },
    "updatedAt": {
      "seconds": "<string>",
      "nanos": "<string>"
    }
  }
}