import requests
url = "https://platform.ankra.app/api/v1/org/security/evidence/destinations"
payload = {
"config": {
"api_base_url": "<string>",
"document_id": "<string>",
"url": "<string>"
},
"credential": {},
"name": "<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({
config: {api_base_url: '<string>', document_id: '<string>', url: '<string>'},
credential: {},
name: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/security/evidence/destinations', 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/security/evidence/destinations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"api_base_url": "<string>",
"document_id": "<string>",
"url": "<string>"
},
"credential": {},
"name": "<string>"
}
'{
"config": {
"api_base_url": "<string>",
"document_id": "<string>",
"url": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credential_configured": true,
"enabled": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "vanta",
"name": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revoked_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Create a security evidence destination
Stores the credential in Vault, then records the destination (a Vanta document, a Wazuh relay or a signed webhook). URLs must be https; addresses are re-checked at dial time.
import requests
url = "https://platform.ankra.app/api/v1/org/security/evidence/destinations"
payload = {
"config": {
"api_base_url": "<string>",
"document_id": "<string>",
"url": "<string>"
},
"credential": {},
"name": "<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({
config: {api_base_url: '<string>', document_id: '<string>', url: '<string>'},
credential: {},
name: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/security/evidence/destinations', 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/security/evidence/destinations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"api_base_url": "<string>",
"document_id": "<string>",
"url": "<string>"
},
"credential": {},
"name": "<string>"
}
'{
"config": {
"api_base_url": "<string>",
"document_id": "<string>",
"url": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credential_configured": true,
"enabled": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "vanta",
"name": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revoked_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Non-secret settings: url (https) for a wazuh relay or webhook; document_id and an optional https api_base_url for Vanta.
Show child attributes
Show child attributes
webhook: signing_secret; wazuh: bearer_token; vanta: client_id and client_secret.
Show child attributes
Show child attributes
vanta, wazuh, webhook Response
Successful response
A configured evidence receiver. The credential is stored in Vault and never returned.
Non-secret settings: url (https) for a wazuh relay or webhook; document_id and an optional https api_base_url for Vanta.
Show child attributes
Show child attributes
vanta, wazuh, webhook