Novence Auth API
The Auth API from Novence — 5 operation(s) for auth.
The Auth API from Novence — 5 operation(s) for auth.
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/novence-ai:novence-ai-auth-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: Novence Auth API
version: 0.2.1
description: 'Control plane for autonomous AI agent website hosting.
**Deploy polling:** use `GET /v1/projects/{id}/deployments/latest` until
`deployment.status` is `live` (or `failed`). Project `status` is lifecycle
(`active`/`deleted`) — it does not become `live`.
**OTP TTL:** email verification codes expire in **15 minutes**.
**Discovery:** `https://api.novence.ai/llms.txt` and `/openapi.yaml` redirect
to `https://novence.ai/…`.'
servers:
- url: https://api.novence.ai
description: Production API
- url: http://127.0.0.1:8080
description: Local
tags:
- name: Auth
paths:
/v1/auth/claim:
post:
summary: Attach an email to an anonymous account and send OTP
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
properties:
email:
type: string
format: email
responses:
'200':
description: OTP emailed
content:
application/json:
schema:
type: object
properties:
accountId:
type: string
format: uuid
email:
type: string
format: email
sent:
type: boolean
emailVerificationRequired:
type: boolean
alreadyVerified:
type: boolean
verificationCode:
type: string
description: Dev-only when Resend unset
'409':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Auth
operationId: postV1AuthClaim
x-operation-id-source: derived
/v1/auth/verify-email:
post:
summary: Verify email with OTP (expires in 15 minutes)
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
- code
properties:
email:
type: string
format: email
code:
type: string
responses:
'200':
description: Verified
content:
application/json:
schema:
type: object
properties:
accountId:
type: string
format: uuid
emailVerified:
type: boolean
alreadyVerified:
type: boolean
tags:
- Auth
operationId: postV1AuthVerifyEmail
x-operation-id-source: derived
/v1/auth/resend-verification:
post:
summary: Email a new OTP (15 min TTL)
description: 'Always sends a code when the account exists, including if the email is
already verified (needed for lost-key recovery). Response includes
`sent: true` when an email was issued. `alreadyVerified: true` does **not**
mean no code was sent. Use the same OTP with `POST /v1/auth/reissue-key`
or `POST /v1/auth/verify-email`. Independent of the bootstrap rate limit.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
properties:
email:
type: string
format: email
responses:
'200':
description: OTP emailed
content:
application/json:
schema:
type: object
required:
- sent
properties:
sent:
type: boolean
emailVerificationRequired:
type: boolean
alreadyVerified:
type: boolean
verificationCode:
type: string
description: Dev-only when Resend unset
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Auth
operationId: postV1AuthResendVerification
x-operation-id-source: derived
/v1/auth/github-oidc:
post:
summary: Exchange a GitHub Actions OIDC token for a short-lived deploy key
description: 'No API key. Call from a GitHub Actions job with `permissions: id-token: write`
in a repository connected with `PUT /v1/projects/{id}/git`. Request the OIDC
token with audience `https://api.novence.ai`. Novence verifies GitHub''s
signature, that the repository is the connected one, and that the run is a
push (or manual run) on the connected branch. Pull request runs and other
branches get 403.
The returned `apiKey` lasts about 30 minutes and can only upload files to and
deploy that one project (upload, file list/delete, deploy, status, checks).
Any other route returns 403 with `code: deploy_scope`. Deployments it creates
carry the token''s repository, ref, sha and actor as a verified `source`.
`npx novence deploy` does this exchange by itself when no key is configured.
Errors carry a `code`: `repo_not_connected` (404), `project_required` (409,
the repository is connected to several projects: pass `projectId`),
`branch_not_allowed`, `event_not_allowed`, `repository_changed` (403).'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- token
properties:
token:
type: string
description: The job's GitHub Actions OIDC token (a JWT)
projectId:
type: string
format: uuid
description: Only needed when the repository is connected to more than one project
responses:
'200':
description: Deploy-only key issued
content:
application/json:
schema:
type: object
properties:
apiKey:
type: string
expiresAt:
type: string
format: date-time
projectId:
type: string
format: uuid
project:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
suffix:
type: string
url:
type: string
format: uri
source:
$ref: '#/components/schemas/DeploySource'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
tags:
- Auth
operationId: postV1AuthGithubOidc
x-operation-id-source: derived
/v1/auth/reissue-key:
post:
summary: Recover a lost nv_ API key (OTP also verifies the email)
description: 'Consumes the OTP from `POST /v1/auth/resend-verification` (or the original
bootstrap email). Issues a new primary account `nv_` key and revokes the
previous primary key (it then returns 401). Named keys from
`POST /v1/api-keys` keep working and are listed in `remainingKeys`;
pass `revokeAll: true` to revoke them too (e.g. after a leak). If the account was unverified, this call
**also verifies the email** — do not spend a second OTP on
`POST /v1/auth/verify-email`. Same response shape for already-verified
accounts. Has its own rate limit (not the bootstrap limiter). Invalid
OTP (400) does not consume the success budget. 429 includes Retry-After.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
- code
properties:
email:
type: string
format: email
code:
type: string
revokeAll:
type: boolean
default: false
description: Also revoke every account and named key
responses:
'200':
description: New apiKey issued; email is verified
content:
application/json:
schema:
type: object
properties:
accountId:
type: string
format: uuid
apiKey:
type: string
emailVerified:
type: boolean
revokedCount:
type: integer
remainingKeys:
type: array
description: Keys still active besides the new one
items:
type: object
properties:
id:
type: string
format: uuid
keyPrefix:
type: string
name:
type: string
scope:
type: string
enum:
- account
- project
projectId:
type: string
format: uuid
nullable: true
'429':
$ref: '#/components/responses/RateLimited'
tags:
- Auth
operationId: postV1AuthReissueKey
x-operation-id-source: derived
components:
responses:
RateLimited:
description: Rate limited — Retry-After is seconds until the rolling hour window resets
headers:
Retry-After:
schema:
type: integer
description: Seconds until the client may retry
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
retryAfter:
type: integer
description: Same value as the Retry-After header
Error:
description: JSON error
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
schemas:
DeploySource:
type: object
description: Where a deployment came from
properties:
kind:
type: string
enum:
- api
- cli
- mcp
- sdk
- github-actions
repository:
type: string
example: acme/website
ref:
type: string
example: refs/heads/main
sha:
type: string
message:
type: string
description: First line of the commit message
actor:
type: string
runUrl:
type: string
format: uri
verified:
type: boolean
description: True when the git fields were read from a GitHub OIDC token
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: API key (nv_…) or management token (mgmt_…)