Revdoku Authentication API
Sign-in helpers for the CLI and AI agents. Backend applications use an API key from the dashboard.
Sign-in helpers for the CLI and AI agents. Backend applications use an API key from the dashboard.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/revdoku-com:revdoku-com-authentication-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Revdoku Authentication API
version: 2.0.0
description: 'A bucket is the project of one docs site: its files, the published site, the site analytics, and the support email address with its tickets. Create buckets, publish sites, read and reply to support requests and store files. The dashboard calls a bucket a site. Guide: https://docs.revdoku.com/api/. Create an account at https://app.revdoku.com/users/sign_up.'
servers:
- url: https://api.revdoku.com
description: Revdoku application API
security:
- bearerAuth: []
tags:
- name: Authentication
description: Sign-in helpers for the CLI and AI agents. Backend applications use an API key from the dashboard.
paths:
/v1/auth/sign_in_code:
post:
operationId: requestSignInCode
tags:
- Authentication
summary: Email a sign-in code
description: Sends a six-digit code to an existing account email. The response is the same for every address, so it never reveals whether an account exists. Create new accounts in the browser at https://app.revdoku.com/users/sign_up.
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
format: email
account_id:
type: string
description: Select another granted account for this request.
reason:
$ref: '#/components/schemas/ActionReason'
required:
- email
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
required:
- success
- data
properties:
success:
type: boolean
const: true
data:
$ref: '#/components/schemas/CodeRequested'
default:
$ref: '#/components/responses/Error'
/v1/auth/sign_in_code/verify:
post:
operationId: verifySignInCode
tags:
- Authentication
summary: Exchange a sign-in code for an API key
description: Creates an AI agent connection for an account owner or administrator. Accounts with two-factor authentication must use browser sign-in.
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
format: email
code:
type: string
description: Six digits; spaces are ignored.
label:
type: string
description: Connection name shown in Account access.
permission_scope:
type: string
enum:
- bucket_read
- bucket_write
- bucket_admin
default: bucket_admin
bucket_access:
type: string
enum:
- all
- selected
default: all
bucket_ids:
type: array
items:
type: string
description: Required when bucket_access is selected.
bucket_permissions:
type: object
additionalProperties:
type: string
enum:
- read
- write
description: 'Optional access per selected bucket ID: read or write. Without an entry, a bucket gets write, or read when permission_scope is bucket_read.'
account_id:
type: string
description: Select another granted account for this request.
reason:
$ref: '#/components/schemas/ActionReason'
required:
- email
- code
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
required:
- success
- data
properties:
success:
type: boolean
const: true
data:
$ref: '#/components/schemas/AgentConnection'
default:
$ref: '#/components/responses/Error'
/v1/auth/grant/exchange:
post:
operationId: exchangeConnectionGrant
tags:
- Authentication
summary: Exchange a one-time dashboard connection code for an API key
description: The dashboard creates the one-time code when a signed-in administrator copies a connection prompt.
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
grant_token:
type: string
label:
type: string
account_id:
type: string
description: Select another granted account for this request.
reason:
$ref: '#/components/schemas/ActionReason'
required:
- grant_token
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
required:
- success
- data
properties:
success:
type: boolean
const: true
data:
$ref: '#/components/schemas/AgentConnection'
default:
$ref: '#/components/responses/Error'
/v1/auth/dashboard_link:
post:
operationId: createDashboardLink
tags:
- Authentication
summary: Create a dashboard link
description: Returns a dashboard URL for a path such as /buckets. The user signs in normally; the link grants no access.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
redirect_path:
type: string
default: /buckets
account_id:
type: string
description: Select another granted account for this request.
reason:
$ref: '#/components/schemas/ActionReason'
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
required:
- success
- data
properties:
success:
type: boolean
const: true
data:
$ref: '#/components/schemas/BrowserLink'
default:
$ref: '#/components/responses/Error'
components:
schemas:
ApiError:
type: object
properties:
success:
const: false
error:
type: object
properties:
code:
type: string
minLength: 1
description: Stable error identifier. See ErrorCode for the documented values. Invalid input always returns INVALID_ARGUMENT with HTTP 422.
message:
type: string
minLength: 1
details:
oneOf:
- type: object
additionalProperties: true
- type: array
items:
type: object
properties:
field:
type: string
message:
type: string
required:
- field
- message
request_id:
type: string
docs_url:
type: string
format: uri
timestamp:
type: string
format: date-time
recoverable:
type: boolean
next_action:
type: string
browser_url:
type: string
required:
- code
- message
required:
- success
- error
not:
anyOf:
- required:
- data
- required:
- error_message
BrowserLink:
type: object
required:
- url
- path
properties:
url:
type: string
format: uri
description: Dashboard link. The user signs in normally; the link grants nothing.
path:
type: string
single_use:
type: boolean
requires_login:
type: boolean
redirect_path:
type: string
ActionReason:
type:
- string
- 'null'
maxLength: 2000
description: Optional purpose for this action. AI agents should explain intentional reads and changes when known; omit when unknown. Do not include secrets, file contents, or transcripts.
AgentConnection:
type: object
description: A new API key for an AI agent or the CLI. Store api_key securely; it is shown only once.
required:
- api_key
- account_id
- scope
properties:
api_key:
type: string
account_id:
type: string
account_name:
type: string
scope:
type: string
enum:
- bucket_read
- bucket_write
- bucket_admin
bucket_access:
type: string
enum:
- all
- selected
bucket_ids:
type: array
items:
type: string
bucket_permissions:
type: object
additionalProperties:
type: string
account_connection_limits:
type: object
additionalProperties: true
expires_at:
type:
- string
- 'null'
format: date-time
manage_access:
type: object
additionalProperties: true
buckets:
type: array
items:
type: object
additionalProperties: true
guidance:
type: string
CodeRequested:
type: object
properties:
message:
type: string
email:
type: string
expires_in_seconds:
type: integer
fallback_url:
type: string
format: uri
hint:
type: string
responses:
Error:
description: 'Request failed. See error.code. Any 429 or 503 response with Retry-After (for example 503 EMAIL_LABELING_PENDING or 503 EMAIL_INDEX_BUILDING): wait that many seconds, then try the request again. 429 EMAIL_SEND_RATE_LIMITED has no Retry-After. Never retry EMAIL_LOOP_DETECTED.'
content:
application/json:
schema:
$ref: '#/components/schemas/ApiError'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Authorization: Bearer YOUR_API_KEY. Create a key in the dashboard under Account → Access.'