POST
Authorizations
Body
Unique identifier for a given Organization.
Response
A successful response returns the following fields:oauth2Credentials field
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_oauth2_credentials \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>"
}'
{
"oauth2Credentials": [
{
"oauth2CredentialId": "<string>",
"organizationId": "<string>",
"provider": "<OAUTH2_PROVIDER_X>",
"clientId": "<string>",
"encryptedClientSecret": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
}
}
]
}
List all OAuth 2.0 credentials within an organization.
Show oauth2Credentials details
OAUTH2_PROVIDER_X, OAUTH2_PROVIDER_DISCORDcurl --request POST \
--url https://api.turnkey.com/public/v1/query/list_oauth2_credentials \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>"
}'
{
"oauth2Credentials": [
{
"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?