Webhook ingress
Legacy service handoff
Fixed service-to-service ingress, not a customer destination. Never retries an uncertain send.
POST
/
v1
/
webhooks
/
legacy-layla
Legacy service handoff
curl --request POST \
--url https://api.sempera.org/v1/webhooks/legacy-layla \
--header 'Content-Type: application/json' \
--header 'X-Sempera-Handoff-Token: <api-key>' \
--data '
{
"call_id": "<string>",
"subject": "<string>",
"text": "<string>",
"html": "<string>"
}
'import requests
url = "https://api.sempera.org/v1/webhooks/legacy-layla"
payload = {
"call_id": "<string>",
"subject": "<string>",
"text": "<string>",
"html": "<string>"
}
headers = {
"X-Sempera-Handoff-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Sempera-Handoff-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({call_id: '<string>', subject: '<string>', text: '<string>', html: '<string>'})
};
fetch('https://api.sempera.org/v1/webhooks/legacy-layla', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"state": "sent"
}{
"state": "sent"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": "<string>"
}Authorizations
Body
application/json
Response
Sent
Available options:
sent, unknown, failed, retry ⌘I
Legacy service handoff
curl --request POST \
--url https://api.sempera.org/v1/webhooks/legacy-layla \
--header 'Content-Type: application/json' \
--header 'X-Sempera-Handoff-Token: <api-key>' \
--data '
{
"call_id": "<string>",
"subject": "<string>",
"text": "<string>",
"html": "<string>"
}
'import requests
url = "https://api.sempera.org/v1/webhooks/legacy-layla"
payload = {
"call_id": "<string>",
"subject": "<string>",
"text": "<string>",
"html": "<string>"
}
headers = {
"X-Sempera-Handoff-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Sempera-Handoff-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({call_id: '<string>', subject: '<string>', text: '<string>', html: '<string>'})
};
fetch('https://api.sempera.org/v1/webhooks/legacy-layla', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"state": "sent"
}{
"state": "sent"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": {
"code": "AGENT_ENV_UNPINNED",
"message": "<string>",
"request_id": "<string>",
"field": "<string>",
"scope": "<string>",
"reason": "<string>"
}
}{
"error": "<string>"
}