Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.wede.pt/llms.txt

Use this file to discover all available pages before exploring further.

API Key

Every Wede tenant has an API key. You can find yours in Settings. API keys have the format: wede_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Using your API key

Direct authentication

For most endpoints, pass your API key in the x-wede-api-key header:
curl https://api.wede.pt/v1/events \
  -H "x-wede-api-key: wede_live_YOUR_KEY"

JWT token

Some endpoints require a JWT token. Exchange your API key for a token:
curl -X POST https://api.wede.pt/v1/auth/token \
  -H "Content-Type: application/json" \
  -d '{"api_key": "wede_live_YOUR_KEY"}'
Use the token in the Authorization header:
curl https://api.wede.pt/v1/tenant/zones \
  -H "Authorization: Bearer eyJ..."
JWT tokens expire after 1 hour.

Security

Never expose your API key in client-side code, public repositories, or logs.
  • Store API keys in environment variables
  • Rotate keys regularly via the dashboard
  • Use the minimum required permissions