API Reference
Start an upload session
/{app-id}/uploadshttps://whatsapp.mimicr.dev/v24.0 · provider: https://graph.facebook.com/v24.0Resumable Upload API, step 1: creates an upload session for a sample header media of a template (or a profile picture). Authenticate with the app access token <app_id>|<app_secret>. Accepted file_type: application/pdf, image/jpeg, image/jpg, image/png, video/mp4.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
App ID. In Mimicr, the app_id of the sandbox.
"109310356550101"Query parameters
File name.
File size in bytes.
MIME type.
Responses
200Upload session.
Upload session ID (upload:…?sig=…).
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.