POST
Authorizations
Body
Unique identifier for a given Organization.
Unique identifier for a given OAuth 2.0 Credential.
Response
A successful response returns the following fields: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>"
}
}
}
Get details about an OAuth 2.0 credential.
Show oauth2Credential details
OAUTH2_PROVIDER_X, OAUTH2_PROVIDER_DISCORDcurl --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>"
}
}
}
Was this page helpful?