Neubot uses JSON Web Tokens (JWT) for API authentication. This allows you to securely access protected endpoints from your applications.
To obtain an API token for a user, you must initiate an OAuth2 login flow with Neubot.
callbackURL with a token parameter appended (or replacing [TOKEN]).Starts the authentication process.
https://neubot.joshattic.us/login/app/
| Parameter | Type | Required | Description |
|---|---|---|---|
callbackURL |
string | Yes | The URL to redirect the user to after successful login. You must include a [TOKEN] placeholder which will be replaced by the actual JWT. |
https://neubot.joshattic.us/login/app/?callbackURL=https://myapp.com/callback?token=[TOKEN]
Once you have the token, you must include it in the headers of your API requests.
| Header | Value Format | Description |
|---|---|---|
Authorization |
Bearer <your_token> |
Standard Bearer token authentication (Preferred). |
curl -X POST https://neubot.joshattic.us/api/query \
-H "Authorization: Bearer eyJhbGciOiJIUzI1..." \
-H "Content-Type: application/json" \
-d '{"query": "Hello"}'