Authentication
Pulbot's REST API uses JWT authentication (user session) or API Key (programmatic access). For external integrations and the MCP, use API Key.
Steps
- 1Generate an API Key: in the app → Profile → API Keys → «Generate new key».
- 2Add the X-API-Key header to each request: X-API-Key: {your_api_key}.
- 3Alternatively, for user sessions: the Authorization: Bearer {jwt_token} header works with the active session token.
Reference
- X-API-Key
- Programmatic key with scopes; it may expire and can be revoked. It does not automatically identify a third party.
- Authorization: Bearer
- Session JWT. Expires. Use API Key for integrations.
- Base URL
- https://dev.pulbot.com/api/v1 (DEV) / https://api.pulbot.com/api/v1 (production)
- Rate limiting
- Free plan: 10 req/s per IP (Cloudflare). No limit by IP, only by rate.
Common errors
- 401 Unauthorized
- Authentication header missing or invalid.
- 403 Forbidden
- Key is valid but the resource doesn't belong to the authenticated user, or the WAF blocked the request.
Next step
Continue with API → Integrate an assistant: Gmail and WhatsApp to connect resources and run actions from your server.