Za-zu uses API keys to authenticate requests. You can manage your API keys from your Za-zu dashboard.
All API requests must include your API token in the za-zu-api-key header:
za-zu-api-key: YOUR_API_TOKEN
In addition to your API token, you need to include this header:
ApiKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRjZmthYndkZnBhdXVtY3pubndoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjcyNDQ1NTQsImV4cCI6MjA0MjgyMDU1NH0.2Eed2baes4t1O8tubVffgF6xz68cWoz6Ih0mPazIVks
Keep your API tokens secure and never share them in publicly accessible areas such as GitHub, client-side code, or forums.
curl -X GET "https://api.za-zu.com/rest/v1/rpc/some_endpoint" \
-H "za-zu-api-key: YOUR_API_TOKEN" \
-H "ApiKey: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InRjZmthYndkZnBhdXVtY3pubndoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjcyNDQ1NTQsImV4cCI6MjA0MjgyMDU1NH0.2Eed2baes4t1O8tubVffgF6xz68cWoz6Ih0mPazIVks" \
-H "Content-Type: application/json"