ZeroNoise AI Identity API
Effective caller, organization, workspace, and authorization context.
Effective caller, organization, workspace, and authorization context.
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/zeronoise-ai:zeronoise-ai-identity-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: ZeroNoise Identity API
version: 1.0.0
description: 'Authenticated API for operating ZeroNoise intelligence Agents. HTTP is the
canonical external contract; the official CLI and MCP adapter preserve the
same product semantics.
Operations that admit AI work spend the organization''s credits. They carry
`x-zeronoise-credits: spends`, or `conditional` with the condition in
`x-zeronoise-credits-when`. Failed work is not charged.'
servers:
- url: /api/v1
security:
- BearerAuth: []
tags:
- name: Identity
description: Effective caller, organization, workspace, and authorization context.
paths:
/me:
get:
tags:
- Identity
summary: Get Current Context
operationId: getCurrentContext
responses:
'200':
description: Effective actor and authorization context
content:
application/json:
schema:
$ref: '#/components/schemas/CurrentContext'
default:
$ref: '#/components/responses/Problem'
/credentials/current:
delete:
tags:
- Identity
summary: Revoke The Calling API Credential
description: Revokes the API credential that authenticates this request, for example on CLI logout. Other credentials are unaffected.
operationId: revokeCurrentCredential
responses:
'204':
description: Revoked
default:
$ref: '#/components/responses/Problem'
/cli/token:
post:
tags:
- Identity
summary: Exchange A CLI Login Code
description: 'Used by the official CLI after browser sign-in at /cli/authorize (OAuth 2.0
authorization code with PKCE for native apps, RFC 8252). Returns an ordinary,
revocable API credential. Codes are single use and expire after two minutes.
Errors use the OAuth token error format.'
operationId: exchangeCliLoginCode
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
required:
- grant_type
- client_id
- code
- code_verifier
- redirect_uri
properties:
grant_type:
type: string
enum:
- authorization_code
client_id:
type: string
enum:
- zeronoise-cli
code:
type: string
maxLength: 128
code_verifier:
type: string
minLength: 43
maxLength: 128
redirect_uri:
type: string
responses:
'200':
description: New API credential. The secret is returned once and must not be logged.
headers:
Cache-Control:
schema:
type: string
enum:
- no-store
content:
application/json:
schema:
type: object
required:
- access_token
- token_type
- scope
- credential
properties:
access_token:
type: string
token_type:
type: string
enum:
- Bearer
expires_in:
type: integer
description: Seconds until the key expires. Omitted when the user chose no expiry.
scope:
type: string
description: Space-separated granted scopes
credential:
type: object
required:
- name
- expires_at
properties:
name:
type: string
expires_at:
type:
- string
- 'null'
format: date-time
description: Null when the key never expires.
'400':
description: invalid_request, invalid_grant or unsupported_grant_type
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthError'
'401':
description: invalid_client
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthError'
/workspaces:
get:
tags:
- Identity
summary: List Workspaces
operationId: listWorkspaces
parameters:
- $ref: '#/components/parameters/Cursor'
- $ref: '#/components/parameters/Limit'
responses:
'200':
description: Authorized workspace selector
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspacePage'
default:
$ref: '#/components/responses/Problem'
components:
schemas:
WorkspaceSummary:
type: object
required:
- id
- object
- organization_id
- name
- kind
properties:
id:
$ref: '#/components/schemas/OpaqueId'
object:
type: string
enum:
- workspace
organization_id:
$ref: '#/components/schemas/OpaqueId'
name:
type: string
kind:
type: string
x-extensible-enum:
- member_private
- shared
role:
type:
- string
- 'null'
default:
type: boolean
default: false
enforced:
type: boolean
default: false
OrganizationReference:
type: object
required:
- id
- object
- name
properties:
id:
$ref: '#/components/schemas/OpaqueId'
object:
type: string
enum:
- organization
name:
type: string
WorkspacePage:
allOf:
- $ref: '#/components/schemas/PageMetadata'
- type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/WorkspaceSummary'
PageMetadata:
type: object
required:
- data
- page
properties:
data:
type: array
items: {}
page:
type: object
required:
- has_more
properties:
next_cursor:
type:
- string
- 'null'
has_more:
type: boolean
OAuthError:
type: object
required:
- error
properties:
error:
type: string
error_description:
type: string
CurrentContext:
type: object
required:
- actor
- authenticated_by
- organization
- scopes
properties:
actor:
$ref: '#/components/schemas/ActorReference'
authenticated_by:
$ref: '#/components/schemas/AuthenticatedBy'
organization:
$ref: '#/components/schemas/OrganizationReference'
workspace:
$ref: '#/components/schemas/WorkspaceSummary'
agent_binding:
$ref: '#/components/schemas/OpaqueId'
scopes:
type: array
uniqueItems: true
items:
type: string
deployment:
type: string
x-extensible-enum:
- development
- staging
- production
ResourceReference:
type:
- object
- 'null'
additionalProperties: false
required:
- object
- id
properties:
object:
type: string
id:
$ref: '#/components/schemas/OpaqueId'
ActorReference:
type: object
required:
- object
- id
properties:
object:
type: string
x-extensible-enum:
- user
- service_account
- system
id:
$ref: '#/components/schemas/OpaqueId'
display_name:
type:
- string
- 'null'
AuthenticatedBy:
type: object
required:
- type
properties:
type:
type: string
x-extensible-enum:
- api_credential
- oauth
ref:
type:
- string
- 'null'
name:
type:
- string
- 'null'
expires_at:
type: string
format: date-time
description: API credential expiry, when it has one
Problem:
type: object
required:
- type
- title
- status
- code
properties:
type:
type: string
format: uri-reference
title:
type: string
status:
type: integer
minimum: 400
maximum: 599
detail:
type: string
instance:
type: string
format: uri-reference
code:
type: string
request_id:
type: string
operation:
$ref: '#/components/schemas/ResourceReference'
errors:
type: array
items:
type: object
required:
- code
properties:
code:
type: string
path:
type: string
description: JSON Pointer
message:
type: string
actual:
type: integer
minimum:
type: integer
OpaqueId:
type: string
minLength: 1
maxLength: 255
description: Opaque identifier; clients must not parse its format.
responses:
Problem:
description: RFC 9457 problem response
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
parameters:
Limit:
name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 25
Cursor:
name: cursor
in: query
schema:
type: string
maxLength: 512
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: ZeroNoise API credential or OAuth access token