Test a provider credential
import requests
url = "https://platform.ankra.app/api/v1/org/credentials/test"
payload = { "provider": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/credentials/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/credentials/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>"
}
'{
"ok": true,
"code": "<string>",
"message": "<string>",
"hints": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Credentials
Test a provider credential
Checks a provider credential against the provider before it is saved: the payload carries the fields the provider’s create route takes, nothing is stored, and the outcome (with a reason code and hints when it fails) is audited without the secret. A provider still dark for the organisation answers 404. No permission is asked of a member’s role (the browser route serves any member the viewer write gate admits); a token with a scope allowlist must carry credentials.write.
POST
/
api
/
v1
/
org
/
credentials
/
test
Test a provider credential
import requests
url = "https://platform.ankra.app/api/v1/org/credentials/test"
payload = { "provider": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/credentials/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/credentials/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>"
}
'{
"ok": true,
"code": "<string>",
"message": "<string>",
"hints": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}