PublicApiService
Get OAuth 2.0 credential
Get details about an OAuth 2.0 credential.
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>"
}
'const options = {
method: 'POST',
headers: {'X-Stamp': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>', oauth2CredentialId: '<string>'})
};
fetch('https://api.0xkey.io/public/v1/query/get_oauth2_credential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.0xkey.io/public/v1/query/get_oauth2_credential"
payload = {
"organizationId": "<string>",
"oauth2CredentialId": "<string>"
}
headers = {
"X-Stamp": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"oauth2Credential": {
"oauth2CredentialId": "<string>",
"organizationId": "<string>",
"provider": "OAUTH2_PROVIDER_UNSPECIFIED",
"clientId": "<string>",
"encryptedClientSecret": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
}
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Authorizations
ApiKeyAuthAuthenticatorAuth
Body
application/json
Response
A successful response.
Show child attributes
Show child attributes
⌘I
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>"
}
'const options = {
method: 'POST',
headers: {'X-Stamp': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>', oauth2CredentialId: '<string>'})
};
fetch('https://api.0xkey.io/public/v1/query/get_oauth2_credential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.0xkey.io/public/v1/query/get_oauth2_credential"
payload = {
"organizationId": "<string>",
"oauth2CredentialId": "<string>"
}
headers = {
"X-Stamp": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"oauth2Credential": {
"oauth2CredentialId": "<string>",
"organizationId": "<string>",
"provider": "OAUTH2_PROVIDER_UNSPECIFIED",
"clientId": "<string>",
"encryptedClientSecret": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
}
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}