API Reference
Upload the file data
/{upload-session-id}https://whatsapp.mimicr.dev/v24.0 · provider: https://graph.facebook.com/v24.0Resumable Upload API, step 2: send the raw bytes as the request body with the file_offset: 0 header (--data-binary @file). The response h is the handle to use in example.header_handle of a template. In Mimicr, the file goes in a single chunk and its size must match file_length.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Headers
Offset of the chunk. Always 0 in Mimicr.
0Path parameters
Upload session ID returned by POST /{app-id}/uploads, including the ?sig= part (upload:<id>?sig=<signature>).
"upload:eyJ3Ijoi…?sig=3tiakVJq…"Body
application/octet-streamFile bytes.
Responses
200Upload handle.
File handle.
400Invalid request. The body follows the Graph API error envelope; code identifies the error (for example 100 invalid parameter, 131009 parameter value not valid).
Show child attributes
Human-readable error message, for WhatsApp errors prefixed with (#code).
Exception type.
"OAuthException"Error code. See the error codes reference.
More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).
Title meant to be shown to the end user.
Message meant to be shown to the end user.
Show child attributes
Always whatsapp.
Details about the error.
Trace ID. Include it when you contact support.
401Missing, invalid or revoked access token (190; a revoked token adds error_subcode: 460). A missing token answers 400 with code 104.
Show child attributes
Human-readable error message, for WhatsApp errors prefixed with (#code).
Exception type.
"OAuthException"Error code. See the error codes reference.
More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).
Title meant to be shown to the end user.
Message meant to be shown to the end user.
Show child attributes
Always whatsapp.
Details about the error.
Trace ID. Include it when you contact support.