API reference The Inkline REST API, v1. JSON in and out, errors as RFC 9457 problem details with a stable code. Generated from the API's own OpenAPI document, so it always matches what is deployed.
Base URL: set INKLINE_API to your API address (local development: http://localhost:5080).Authentication: Authorization: Bearer ink_…. Create a personal API token in Settings → Tokens ; it is shown once.Limits: render 60 requests a minute per user; sign-in endpoints 30 a minute per IP. Over the limit you get 429 with Retry-After.Render Draw .ink text to SVG, PNG, JPEG, WebP or PDF with a personal API token.
Send diagram text, get the file back. It is the same engine as the editor, the CLI and the VS Code extension, so the result is identical. If the text has a problem you get 422 with each diagnostic's code, message and line, never a broken image.
Field Type What it does sourcestring The diagram text (.ink), up to 200 KB. formatstring svg, png, jpeg, webp or pdf. scalenumber 1 to 4 for raster formats. Default 1. themestring slate, light, dark or ink. Overrides the theme line in the text. backgroundstring theme, transparent or a hex colour such as #ffffff. paddinginteger Space around the diagram in pixels, 0 to 400.
POST /v1/renderRender .ink source to svg/png/jpeg/webp/pdf (same body as the web render route).
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required sourcestring body yes formatstring body yes scalenumber body no themestring body no backgroundstring body no paddinginteger body no
Responses: 200 OK · 400 Bad Request · 401 Unauthorized · 422 Unprocessable Entity · 429 Too Many Requests · 502 Bad Gateway
curl curl -X POST "$INKLINE_API/v1/render" \
-H "Authorization: Bearer ink_…" \
-H "Content-Type: application/json" \
-d '{"source":"diagram flow \"Hi\"\n start a \"Start\"\n end b \"Done\"\n a -> b","format":"png","scale":2}' \
--output diagram.png
Diagrams Create, list, search, rename and move diagrams; every save is a version.
GET /workspaces/{wid}/diagramsNewest first. q = full-text (prefix) search over title and current source. Cursor paginated.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes FolderIduuid query no Qstring query no Cursorstring query no Limitinteger query no
Responses: 200 OK · 400 Bad Request · 404 Not Found
curl curl -X GET "$INKLINE_API/workspaces/{wid}/diagrams" \
-H "Authorization: Bearer ink_…"
POST /workspaces/{wid}/diagramsCreate a diagram (version 1). Editor+.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes titlestring body yes typestring body yes sourcestring body yes folderIduuid body no engineVersionstring body no
Responses: 201 Created · 400 Bad Request · 403 Forbidden · 404 Not Found
curl curl -X POST "$INKLINE_API/workspaces/{wid}/diagrams" \
-H "Authorization: Bearer ink_…" \
-H "Content-Type: application/json" \
-d '{"title":"<title>","type":"<type>","source":"diagram flow \"Hi\"\n start a \"Start\"\n end b \"Done\"\n a -> b"}'
GET /diagrams/{id}Diagram with current source; ETag: "<version>".
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes
Responses: 200 OK · 404 Not Found
curl curl -X GET "$INKLINE_API/diagrams/{id}" \
-H "Authorization: Bearer ink_…"
PATCH /diagrams/{id}Rename and/or move (folderId: null moves to root; omit to keep). Editor+.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes titlestring body no folderIduuid body no
Responses: 200 OK · 400 Bad Request · 403 Forbidden · 404 Not Found · 409 Conflict
curl curl -X PATCH "$INKLINE_API/diagrams/{id}" \
-H "Authorization: Bearer ink_…" \
-H "Content-Type: application/json" \
-d '{}'
DELETE /diagrams/{id}Soft delete (restorable). Editor+.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes
Responses: 204 No Content · 403 Forbidden · 404 Not Found
curl curl -X DELETE "$INKLINE_API/diagrams/{id}" \
-H "Authorization: Bearer ink_…"
POST /diagrams/{id}/restoreUndo a soft delete. Editor+.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes
Responses: 200 OK · 404 Not Found
curl curl -X POST "$INKLINE_API/diagrams/{id}/restore" \
-H "Authorization: Bearer ink_…"
GET /diagrams/{id}/versionsVersion history, newest first (without source).
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes
Responses: 200 OK · 404 Not Found
curl curl -X GET "$INKLINE_API/diagrams/{id}/versions" \
-H "Authorization: Bearer ink_…"
POST /diagrams/{id}/versionsAppend a version. Requires If-Match: "<current version>" (428 if missing, 412 if stale).
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes If-Matchstring header no sourcestring body yes engineVersionstring body no
Responses: 201 Created · 400 Bad Request · 412 Precondition Failed · 428 Precondition Required
curl curl -X POST "$INKLINE_API/diagrams/{id}/versions" \
-H "Authorization: Bearer ink_…" \
-H 'If-Match: "3"' \
-H "Content-Type: application/json" \
-d '{"source":"diagram flow \"Hi\"\n start a \"Start\"\n end b \"Done\"\n a -> b"}'
GET /diagrams/{id}/versions/{n}Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes ninteger path yes
Responses: 200 OK · 404 Not Found
curl curl -X GET "$INKLINE_API/diagrams/{id}/versions/{n}" \
-H "Authorization: Bearer ink_…"
POST /diagrams/{id}/versions/{n}/restoreCreate a new version whose source copies version n.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes ninteger path yes
Responses: 201 Created · 404 Not Found
curl curl -X POST "$INKLINE_API/diagrams/{id}/versions/{n}/restore" \
-H "Authorization: Bearer ink_…"
Sharing Public view or comment links, and the anonymous read of a shared diagram.
GET /public/{token}Anonymous view of a shared diagram. Revoked/expired/unknown → 404.
No authentication
Name Type In Required tokenstring path yes
Responses: 200 OK · 404 Not Found
curl curl -X GET "$INKLINE_API/public/{token}"
GET /diagrams/{id}/share-linksShare links of a diagram (tokens are never returned). Editor+.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes
Responses: 200 OK
curl curl -X GET "$INKLINE_API/diagrams/{id}/share-links" \
-H "Authorization: Bearer ink_…"
POST /diagrams/{id}/share-linksCreate a public link; token and url are returned once. Editor+.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes accessShareAccess body yes expiresAtstring body no
Responses: 201 Created · 400 Bad Request
curl curl -X POST "$INKLINE_API/diagrams/{id}/share-links" \
-H "Authorization: Bearer ink_…" \
-H "Content-Type: application/json" \
-d '{"access":"<access>"}'
DELETE /diagrams/{id}/share-links/{linkId}Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required iduuid path yes linkIduuid path yes
Responses: 204 No Content · 404 Not Found
curl curl -X DELETE "$INKLINE_API/diagrams/{id}/share-links/{linkId}" \
-H "Authorization: Bearer ink_…"
Icons Custom SVG or PNG icons per workspace, used as use=custom/<name>.
GET /workspaces/{wid}/iconsCustom icons of the workspace (any member), ordered by name.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes
Responses: 200 OK · 404 Not Found
curl curl -X GET "$INKLINE_API/workspaces/{wid}/icons" \
-H "Authorization: Bearer ink_…"
POST /workspaces/{wid}/iconsUpload an icon (editor+): multipart 'file' (SVG ≤ 64 KB or PNG ≤ 256 KB) and 'name' ([a-z0-9-]{1,40}). SVG is sanitised; unsafe SVG is rejected.
Bearer token: a personal API token (ink_…) or a signed-in session
Body: multipart/form-data with name and file.
Name Type In Required widuuid path yes
Responses: 201 Created · 400 Bad Request · 403 Forbidden · 404 Not Found · 409 Conflict · 413 Payload Too Large
curl curl -X POST "$INKLINE_API/workspaces/{wid}/icons" \
-H "Authorization: Bearer ink_…" \
-F name=my-icon -F file=@icon.svg
GET /workspaces/{wid}/icons/{id}/contentThe icon file with its own Content-Type, a 'default-src none' CSP and nosniff (any member).
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes iduuid path yes
Responses: 200 OK · 304 Not Modified · 404 Not Found
curl curl -X GET "$INKLINE_API/workspaces/{wid}/icons/{id}/content" \
-H "Authorization: Bearer ink_…"
DELETE /workspaces/{wid}/icons/{id}Delete an icon (editor+). Diagrams that use it fall back to the kind glyph (INK2018).
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes iduuid path yes
Responses: 204 No Content · 403 Forbidden · 404 Not Found
curl curl -X DELETE "$INKLINE_API/workspaces/{wid}/icons/{id}" \
-H "Authorization: Bearer ink_…"
Folders A flat list of folders with parentId; at most five levels deep.
GET /workspaces/{wid}/foldersAll folders in the workspace (flat; build the tree from parentId).
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes
Responses: 200 OK · 404 Not Found
curl curl -X GET "$INKLINE_API/workspaces/{wid}/folders" \
-H "Authorization: Bearer ink_…"
POST /workspaces/{wid}/foldersCreate a folder (editor+). Max depth 5.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes namestring body yes parentIduuid body no
Responses: 201 Created · 400 Bad Request · 403 Forbidden
curl curl -X POST "$INKLINE_API/workspaces/{wid}/folders" \
-H "Authorization: Bearer ink_…" \
-H "Content-Type: application/json" \
-d '{"name":"<name>"}'
PATCH /workspaces/{wid}/folders/{id}Rename and/or move (parentId: null moves to root; omit to keep).
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes iduuid path yes namestring body no parentIduuid body no
Responses: 200 OK · 400 Bad Request · 403 Forbidden · 404 Not Found
curl curl -X PATCH "$INKLINE_API/workspaces/{wid}/folders/{id}" \
-H "Authorization: Bearer ink_…" \
-H "Content-Type: application/json" \
-d '{}'
DELETE /workspaces/{wid}/folders/{id}Delete a folder and its sub-folders; their diagrams move to the root.
Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes iduuid path yes
Responses: 204 No Content · 403 Forbidden · 404 Not Found
curl curl -X DELETE "$INKLINE_API/workspaces/{wid}/folders/{id}" \
-H "Authorization: Bearer ink_…"
Workspaces Your personal workspace and team workspaces.
GET /workspacesWorkspaces the caller belongs to (personal first) with the caller's role.
Bearer token: a personal API token (ink_…) or a signed-in session
Responses: 200 OK
curl curl -X GET "$INKLINE_API/workspaces" \
-H "Authorization: Bearer ink_…"
POST /workspacesCreate a team workspace; the caller becomes owner.
Signed-in session only (personal API tokens are refused)
Name Type In Required namestring body yes slugstring body no
Responses: 201 Created · 400 Bad Request · 409 Conflict
curl curl -X POST "$INKLINE_API/workspaces" \
-H "Authorization: Bearer <access token from sign-in>" \
-H "Content-Type: application/json" \
-d '{"name":"<name>"}'
GET /workspaces/{wid}Bearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes
Responses: 200 OK · 404 Not Found
curl curl -X GET "$INKLINE_API/workspaces/{wid}" \
-H "Authorization: Bearer ink_…"
PATCH /workspaces/{wid}Rename (owner only).
Signed-in session only (personal API tokens are refused)
Name Type In Required widuuid path yes namestring body yes
Responses: 200 OK · 400 Bad Request · 403 Forbidden · 404 Not Found
curl curl -X PATCH "$INKLINE_API/workspaces/{wid}" \
-H "Authorization: Bearer <access token from sign-in>" \
-H "Content-Type: application/json" \
-d '{"name":"<name>"}'
DELETE /workspaces/{wid}Delete a team workspace and its content (owner only; personal workspaces cannot be deleted).
Signed-in session only (personal API tokens are refused)
Name Type In Required widuuid path yes
Responses: 204 No Content · 403 Forbidden · 409 Conflict
curl curl -X DELETE "$INKLINE_API/workspaces/{wid}" \
-H "Authorization: Bearer <access token from sign-in>"
Members Who can view, comment, edit or own a workspace.
GET /workspaces/{wid}/membersBearer token: a personal API token (ink_…) or a signed-in session
Name Type In Required widuuid path yes
Responses: 200 OK · 404 Not Found
curl curl -X GET "$INKLINE_API/workspaces/{wid}/members" \
-H "Authorization: Bearer ink_…"
POST /workspaces/{wid}/membersAdd a user by email (owner only). Always 202 {} whether or not the email has an account or is already a member (no account enumeration).
Signed-in session only (personal API tokens are refused)
Name Type In Required widuuid path yes emailstring body yes roleWorkspaceRole body yes
Responses: 202 Accepted · 400 Bad Request · 403 Forbidden · 404 Not Found
curl curl -X POST "$INKLINE_API/workspaces/{wid}/members" \
-H "Authorization: Bearer <access token from sign-in>" \
-H "Content-Type: application/json" \
-d '{"email":"<email>","role":"<role>"}'
PATCH /workspaces/{wid}/members/{userId}Change a member's role (owner only; the last owner cannot be demoted).
Signed-in session only (personal API tokens are refused)
Name Type In Required widuuid path yes userIduuid path yes roleWorkspaceRole body yes
Responses: 200 OK · 400 Bad Request · 403 Forbidden · 409 Conflict
curl curl -X PATCH "$INKLINE_API/workspaces/{wid}/members/{userId}" \
-H "Authorization: Bearer <access token from sign-in>" \
-H "Content-Type: application/json" \
-d '{"role":"<role>"}'
DELETE /workspaces/{wid}/members/{userId}Remove a member (owner), or leave (yourself).
Signed-in session only (personal API tokens are refused)
Name Type In Required widuuid path yes userIduuid path yes
Responses: 204 No Content · 403 Forbidden · 409 Conflict
curl curl -X DELETE "$INKLINE_API/workspaces/{wid}/members/{userId}" \
-H "Authorization: Bearer <access token from sign-in>"
Me Your profile and personal API tokens.
GET /meThe signed-in user (JWT or API token).
Bearer token: a personal API token (ink_…) or a signed-in session
Responses: 200 OK · 401 Unauthorized
curl curl -X GET "$INKLINE_API/me" \
-H "Authorization: Bearer ink_…"
PATCH /meUpdate display name and/or locale.
Signed-in session only (personal API tokens are refused)
Name Type In Required displayNamestring body no localestring body no
Responses: 200 OK · 400 Bad Request
curl curl -X PATCH "$INKLINE_API/me" \
-H "Authorization: Bearer <access token from sign-in>" \
-H "Content-Type: application/json" \
-d '{}'
GET /me/tokensActive personal API tokens (secrets are never returned).
Signed-in session only (personal API tokens are refused)
Responses: 200 OK
curl curl -X GET "$INKLINE_API/me/tokens" \
-H "Authorization: Bearer <access token from sign-in>"
POST /me/tokensCreate a personal API token. The ink_… secret is in the response only once.
Signed-in session only (personal API tokens are refused)
Name Type In Required namestring body yes scopesarray body no expiresAtstring body no
Responses: 201 Created · 400 Bad Request
curl curl -X POST "$INKLINE_API/me/tokens" \
-H "Authorization: Bearer <access token from sign-in>" \
-H "Content-Type: application/json" \
-d '{"name":"<name>"}'
DELETE /me/tokens/{id}Revoke a token.
Signed-in session only (personal API tokens are refused)
Name Type In Required iduuid path yes
Responses: 204 No Content · 404 Not Found
curl curl -X DELETE "$INKLINE_API/me/tokens/{id}" \
-H "Authorization: Bearer <access token from sign-in>"
Account Email, password, sessions, data export and account deletion.
DELETE /meDelete the account. Body {password} (required when the account has one). 400 invalid_password / reauth_required; 409 sole_owner_with_members.
Signed-in session only (personal API tokens are refused)
Responses: 204 No Content · 400 Bad Request · 409 Conflict
curl curl -X DELETE "$INKLINE_API/me" \
-H "Authorization: Bearer <access token from sign-in>"
POST /auth/verify-emailUse an email verification or email-change link. 400 invalid_token; 409 email_taken (change only).
No authentication
Name Type In Required tokenstring body yes
Responses: 200 OK · 400 Bad Request · 409 Conflict
curl curl -X POST "$INKLINE_API/auth/verify-email" \
-H "Content-Type: application/json" \
-d '{"token":"<token>"}'
POST /auth/password/forgotEmail a 30-minute reset link if the account exists. Always 202 {} (no account enumeration).
No authentication
Name Type In Required emailstring body yes
Responses: 202 Accepted · 400 Bad Request
curl curl -X POST "$INKLINE_API/auth/password/forgot" \
-H "Content-Type: application/json" \
-d '{"email":"<email>"}'
POST /auth/password/resetSet a new password with a reset link; signs out every session. 400 invalid_token / weak_password / breached_password.
No authentication
Name Type In Required tokenstring body yes newPasswordstring body yes
Responses: 204 No Content · 400 Bad Request
curl curl -X POST "$INKLINE_API/auth/password/reset" \
-H "Content-Type: application/json" \
-d '{"token":"<token>","newPassword":"<newPassword>"}'
POST /me/email/verificationSend a new verification link. 409 already_verified.
Signed-in session only (personal API tokens are refused)
Responses: 202 Accepted · 409 Conflict
curl curl -X POST "$INKLINE_API/me/email/verification" \
-H "Authorization: Bearer <access token from sign-in>"
POST /me/emailSend a confirmation link to the new address; the email changes when it is opened. 400 invalid_password / password_required.
Signed-in session only (personal API tokens are refused)
Name Type In Required newEmailstring body yes currentPasswordstring body yes
Responses: 202 Accepted · 400 Bad Request
curl curl -X POST "$INKLINE_API/me/email" \
-H "Authorization: Bearer <access token from sign-in>" \
-H "Content-Type: application/json" \
-d '{"newEmail":"<newEmail>","currentPassword":"<currentPassword>"}'
POST /me/passwordChange the password; signs out every other session. 400 invalid_password / password_required / weak_password / breached_password.
Signed-in session only (personal API tokens are refused)
Name Type In Required currentPasswordstring body yes newPasswordstring body yes revokeApiTokensboolean body no
Responses: 204 No Content · 400 Bad Request
curl curl -X POST "$INKLINE_API/me/password" \
-H "Authorization: Bearer <access token from sign-in>" \
-H "Content-Type: application/json" \
-d '{"currentPassword":"<currentPassword>","newPassword":"<newPassword>"}'
GET /me/exportDownload everything stored about you as JSON (attachment).
Signed-in session only (personal API tokens are refused)
Responses: 200 OK
curl curl -X GET "$INKLINE_API/me/export" \
-H "Authorization: Bearer <access token from sign-in>"
GET /me/sessionsActive sign-in sessions; current = the session of this access token.
Signed-in session only (personal API tokens are refused)
Responses: 200 OK
curl curl -X GET "$INKLINE_API/me/sessions" \
-H "Authorization: Bearer <access token from sign-in>"
DELETE /me/sessionsSign out every other session (?includeCurrent=true: all sessions).
Signed-in session only (personal API tokens are refused)
Name Type In Required includeCurrentboolean query no
Responses: 204 No Content
curl curl -X DELETE "$INKLINE_API/me/sessions" \
-H "Authorization: Bearer <access token from sign-in>"
DELETE /me/sessions/{id}Sign out one session.
Signed-in session only (personal API tokens are refused)
Name Type In Required iduuid path yes
Responses: 204 No Content · 404 Not Found
curl curl -X DELETE "$INKLINE_API/me/sessions/{id}" \
-H "Authorization: Bearer <access token from sign-in>"
Auth Sign-in flows used by the web app and `ink login`.
POST /auth/registerCreate an account and its personal workspace; returns tokens.
No authentication
Name Type In Required emailstring body yes passwordstring body yes displayNamestring body yes
Responses: 201 Created · 400 Bad Request · 409 Conflict
curl curl -X POST "$INKLINE_API/auth/register" \
-H "Content-Type: application/json" \
-d '{"email":"<email>","password":"<password>","displayName":"<displayName>"}'
POST /auth/loginSign in with email and password (5 failures lock the account for 15 minutes).
No authentication
Name Type In Required emailstring body yes passwordstring body yes
Responses: 200 OK · 400 Bad Request · 401 Unauthorized
curl curl -X POST "$INKLINE_API/auth/login" \
-H "Content-Type: application/json" \
-d '{"email":"<email>","password":"<password>"}'
POST /auth/refreshRotate a refresh token. Reusing an old token revokes the whole token family.
No authentication
Name Type In Required refreshTokenstring body yes
Responses: 200 OK · 400 Bad Request · 401 Unauthorized
curl curl -X POST "$INKLINE_API/auth/refresh" \
-H "Content-Type: application/json" \
-d '{"refreshToken":"<refreshToken>"}'
POST /auth/logoutRevoke the refresh token's family. Always 204.
No authentication
Name Type In Required refreshTokenstring body yes
Responses: 204 No Content · 400 Bad Request
curl curl -X POST "$INKLINE_API/auth/logout" \
-H "Content-Type: application/json" \
-d '{"refreshToken":"<refreshToken>"}'
POST /auth/device/codeStart a CLI device login (RFC 8628).
No authentication
Responses: 200 OK
curl curl -X POST "$INKLINE_API/auth/device/code"
POST /auth/device/approveSigned-in web user approves the code shown by the CLI.
Signed-in session only (personal API tokens are refused)
Name Type In Required userCodestring body yes
Responses: 204 No Content · 400 Bad Request · 404 Not Found
curl curl -X POST "$INKLINE_API/auth/device/approve" \
-H "Authorization: Bearer <access token from sign-in>" \
-H "Content-Type: application/json" \
-d '{"userCode":"<userCode>"}'
POST /auth/device/tokenCLI poll. 428 authorization_pending, 429 slow_down, 400 expired_token / invalid_grant.
No authentication
Name Type In Required deviceCodestring body yes
Responses: 200 OK · 400 Bad Request · 428 Precondition Required · 429 Too Many Requests
curl curl -X POST "$INKLINE_API/auth/device/token" \
-H "Content-Type: application/json" \
-d '{"deviceCode":"<deviceCode>"}'
GET /auth/oauth/providersNames of the enabled OAuth providers.
No authentication
Responses: 200 OK
curl curl -X GET "$INKLINE_API/auth/oauth/providers"
GET /auth/oauth/{provider}/startRedirect to the provider's consent screen. Requires redirectUri (allow-listed) and nonceHash (base64url SHA-256 of the browser nonce).
No authentication
Name Type In Required providerstring path yes redirectUristring query no nonceHashstring query no
Responses: 302 Found · 400 Bad Request · 404 Not Found
curl curl -X GET "$INKLINE_API/auth/oauth/{provider}/start"
GET /auth/oauth/{provider}/callbackProvider callback; redirects to the web app with ?code= or ?error=.
No authentication
Name Type In Required providerstring path yes codestring query no statestring query no errorstring query no
Responses: 302 Found · 400 Bad Request
curl curl -X GET "$INKLINE_API/auth/oauth/{provider}/callback"
POST /auth/oauth/exchangeExchange the one-time code and the browser nonce for tokens (single use, 60 s). Any failure: 401 invalid_grant and the code is spent.
No authentication
Name Type In Required codestring body yes noncestring body yes
Responses: 200 OK · 400 Bad Request · 401 Unauthorized
curl curl -X POST "$INKLINE_API/auth/oauth/exchange" \
-H "Content-Type: application/json" \
-d '{"code":"<code>","nonce":"<nonce>"}'
Health Liveness for monitors.
GET /healthzNo authentication
Responses: 200 OK
curl curl -X GET "$INKLINE_API/healthz"