apistockdocs
v0.4 GitHub apistock.dev
API reference/Overview

API reference

This is the API of the example multi-tenant app in examples/full-multi, rendered from its checked-in openapi.json. Every app you create with aps new serves the same reference for its own API at /docs, and aps dev serves the API at http://127.0.0.1:8080.

Base URL#

Send requests to the server the API runs on. "Try it" on each endpoint asks for its address.

Authentication#

bearer. Session token from POST /v1/auth/login with "transport": "bearer". Browsers use the session cookie that login sets instead.

Errors#

Errors are application/problem+json. Match on code: it stays the same, while messages may change.

codestringrequired

Stable machine-readable error code

statusintegerrequired

HTTP status code

format: int64
titlestringrequired

Short summary of the problem type

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

nullable
2 fields
messagestringrequired

What is wrong

locationstring

Where the error occurred

request_idstring

Correlates with server logs and traces

typestring

URI identifying the problem type

Endpoints#

Ops: audit

Ops: auth

Ops: job definitions

Ops: job runs

Ops: email

Ops: job queues

Ops: releases

Ops: settings

Auth

POST/v1/auth/apple/callbackApple's return to the APIPOST/v1/auth/apple/notificationsApple's server-to-server notificationsPOST/v1/auth/apple/tokenSign in with an Apple ID tokenGET/v1/auth/google/callbackGoogle's return to the APIPOST/v1/auth/google/tokenSign in with a Google ID tokenGET/v1/auth/identitiesList linked Google and Apple accountsDEL/v1/auth/identities/{id}Unlink a Google or Apple accountPOST/v1/auth/loginSign inPOST/v1/auth/login/mfaFinish signing in with a second factorPOST/v1/auth/login/mfa/passkeyStart a passkey second factorPOST/v1/auth/logoutSign out this devicePOST/v1/auth/logout-allSign out every deviceGET/v1/auth/meGet the signed-in userDEL/v1/auth/meDelete the accountPOST/v1/auth/mfa/recovery-codesReplace the recovery codesPOST/v1/auth/mfa/totpStart setting up an authenticator appDEL/v1/auth/mfa/totpTurn off the authenticator appPOST/v1/auth/mfa/totp/confirmTurn on the authenticator appGET/v1/auth/passkeysList passkeysPOST/v1/auth/passkeysAdd a passkeyPOST/v1/auth/passkeys/loginSign in with a passkeyPOST/v1/auth/passkeys/login/optionsStart signing in with a passkeyPOST/v1/auth/passkeys/registrationStart adding a passkeyPOST/v1/auth/passkeys/verificationConfirm a change with a passkeyPATCH/v1/auth/passkeys/{id}Rename a passkeyDEL/v1/auth/passkeys/{id}Remove a passkeyPUT/v1/auth/passwordChange the passwordPOST/v1/auth/password/forgotEmail a password reset codePOST/v1/auth/password/resetSet a new password with a reset codePOST/v1/auth/registerCreate an accountGET/v1/auth/sessionsList signed-in devicesDEL/v1/auth/sessions/{id}Sign out one devicePOST/v1/auth/verify-emailVerify an email address with its codePOST/v1/auth/verify-email/resendSend a new verification codePOST/v1/auth/{provider}/nonceGet a nonce for a native sign-inGET/v1/auth/{provider}/startSign in with Google or Apple in a browser

Example

Organisations

Projects

System

v0.4
esc
↑↓ move↵ openesc close