REST API endpoints (chamevo/v1)
Reference for the Chamevo WordPress REST API β authentication, order retrieval, and print-ready file webhook.
Chamevo registers REST API endpoints under the chamevo/v1 namespace. Use these endpoints to retrieve order customization data programmatically or receive print-ready file notifications via webhook.
Authentication
Protected endpoints require a Bearer token in the Authorization header.
Authorization: Bearer YOUR_API_TOKEN
Chamevo auto-generates a 64-character token and stores it in the chamevo_api_token WordPress option. To retrieve your token:
$token = get_option('chamevo_api_token');
If the token does not exist, Chamevo generates one on the next API request. You can also regenerate it by deleting the option and making a new request:
delete_option('chamevo_api_token');
Error responses
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or malformed Authorization header |
403 Forbidden | Invalid token |
{
"code": "unauthorized",
"message": "Authorization header missing or invalid",
"data": { "status": 401 }
}