translation_request.created
POST Webhook translation_request.created
Headers
knak-signaturestring
Hash-based message authentication code (HMAC) with SHA-256 used to verify that the payload contents were sent by Knak.
Example:eXYGdAHaNVcOLHVABaYIQHIdBTAZDFAT
Knak-Versionstring
The version of the webhook payload.
Example:1.0
Knak-Event-Typestring
The webhook's event type.
Example:translation_request.created
Payload
Example payload
{
"event_type": "asset.translation_requested",
"event_id": "609d7ce223411",
"event_date": "2023-02-08T17:07:12+00:00",
"version": "1.0",
"data": {
"asset": {
"id": "609d7ce223411",
"name": "Spring Newsletter",
"folder_path": "Sample Brand/Folder 1/Folder 2/Sample Campaign",
"campaign": "Sample Campaign",
"brand": "Sample Brand",
"version": "1.0",
"language_code": "es"
},
"user": {
"id": "609d7ce223411",
"name": "John Doe",
"email": "john.doe@email.com",
"roles": [
"Email Creator",
"Collaborator"
]
},
"translation_request": {
"id": "609d7ce223411",
"language_code": "zh-CN",
"source_language_code": "en-US",
"status": "processing",
"base_asset_id": "609ca344d1b1b",
"asset_version_id": "67d19607cbb1d4.78284760",
"integration_id": "609ca344d1caa",
"user": {
"id": "609d7ce223411",
"name": "John Doe",
"email": "john.doe@email.com",
"roles": [
"Email Creator",
"Collaborator"
]
},
"notes": "Need a translation for this asset soon",
"due_date": "2023-02-08",
"created_at": "2023-02-08T17:07:12+00:00",
"updated_at": "2023-02-08T17:07:12+00:00"
}
}
}Response
Return a 200 status to indicate that the notification was received.
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.