Start an authorization
/oauth/authorizeStarts an OAuth authorization. Open it in the person's browser: Chartnaut checks the request and sends them to its consent page, and when they click Allow it redirects to your redirect_uri with a one-time code for Get a token.
Scope | Heavy call | Long poll | CLI |
|---|---|---|---|
None, no key | No | No | None |
Guidance
It lives at the root of
https://api.chartnaut.com, not under/v1. Open it in a browser, never with a background request: the person signs in and decides onhttps://terminal.chartnaut.com/morpheus/oauth/consent. Permissions and connected apps shows that page.PKCE is required. Make a random
code_verifierof 43 to 128 characters, send its SHA-256, base64url-encoded without padding, ascode_challenge, and keep the verifier for the token call.Check that
statecomes back unchanged, and thatissishttps://api.chartnaut.com.The request lasts 10 minutes and can be answered once. The
codelasts 60 seconds and works once; a second use revokes every token the first one issued.Limited to 60 a minute from one IP address.
Query parameters
Name | Type | Required | Default | Description |
|---|---|---|---|---|
| string | Yes | None |
|
| string | Yes | None | From Register a client |
| string | When more than one is registered | The only registered one | Must match a registered URI exactly. For |
| string | Yes | None | The PKCE challenge, 43 to 128 characters |
| string | Yes | None |
|
| string | No | None | Returned unchanged. Up to 2,000 characters |
| string | No | All three | Space-separated: |
| string | No | The MCP server |
|
Response
302 to the consent page. After the person decides, their browser goes to your redirect_uri with these query parameters:
Parameter | When | Description |
|---|---|---|
| Allow | 64 hex characters. Exchange it within 60 seconds |
| Cancel or a bad request |
|
| With | For people |
| Always, when sent | Your |
| Always |
|
After Allow, the browser arrives at your redirect_uri like this:
http://127.0.0.1:33418/callback?code=8f14e45fceea167a5a36dedd4bea2543c9f0f895fb98ab9159f51fd0297e236d&iss=https%3A%2F%2Fapi.chartnaut.com&state=af0ifjsldkjA request whose client_id or redirect_uri cannot be trusted is never redirected. Chartnaut shows an error page instead, This sign-in link can't be used, with the reason.
Status codes
Status | Code | Meaning |
|---|---|---|
| - | To the consent page, or to your |
|
| Unknown |
|
| Missing |
| - | More than 60 in a minute from your IP address. Shown as a page |
| - | Something failed on Chartnaut's side. Shown as a page |
