Stonewake Org API
The org API from Stonewake — 2 operation(s) for org.
The org API from Stonewake — 2 operation(s) for org.
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/stonewake-ai:stonewake-ai-org-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: Stonewake Org API
description: 'Read-only API for Stonewake credit monitoring, entity risk, and country intelligence. Documentation and setup guides: https://docs.stonewake.ai. Access is arranged per customer workspace.'
termsOfService: https://stonewake.ai/terms
contact:
name: Stonewake
url: https://stonewake.ai/contact
email: contact@stonewake.ai
license:
name: Proprietary
url: https://stonewake.ai/terms
version: 1.0.0
servers:
- url: https://api.stonewake.ai
description: Production
tags:
- name: Org
paths:
/org/api-keys:
post:
tags:
- Org
summary: Create Api Key
description: 'Issue a machine key for this tenant. The response carries the plaintext
secret EXACTLY ONCE: it is not stored and cannot be shown again.'
operationId: create_api_key_org_api_keys_post
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyCreateIn'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyCreatedOut'
'401':
description: The session credential was missing or not accepted. An API key is refused here too, because keys work only on /v1 and the MCP server.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgUnauthenticatedOut'
'403':
description: The signed in person is no workspace administrator, the request came from a framed page, or, on creation, API access is not enabled for the workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
'422':
description: The request failed validation. A body field the schema refuses answers the validation body; an expiry without a time zone or in the past, and a team that is not one of the workspace's, answer one sentence in detail.
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/OrgRefusalOut'
'429':
headers:
Retry-After:
description: Seconds to wait before the next request.
schema:
type: integer
description: The signed in person's minute ceiling was reached. Retry after the seconds in Retry-After.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
'503':
description: The request could not be served safely, for example because the minute ceiling could not be counted. Retry with backoff.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
security:
- bearerAuth: []
get:
tags:
- Org
summary: List Api Keys
description: 'This tenant''s keys, newest first: metadata only, revoked ones included
(the audit-friendly full history; nothing is ever deleted), plus the
workspace''s API-access status. Served to unentitled tenants too: visibility
of existing keys is never gated.'
operationId: list_api_keys_org_api_keys_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyListOut'
'401':
description: The session credential was missing or not accepted. An API key is refused here too, because keys work only on /v1 and the MCP server.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgUnauthenticatedOut'
'403':
description: The signed in person is no workspace administrator, the request came from a framed page, or, on creation, API access is not enabled for the workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
'422':
description: The request failed validation. A body field the schema refuses answers the validation body; an expiry without a time zone or in the past, and a team that is not one of the workspace's, answer one sentence in detail.
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/OrgRefusalOut'
'429':
headers:
Retry-After:
description: Seconds to wait before the next request.
schema:
type: integer
description: The signed in person's minute ceiling was reached. Retry after the seconds in Retry-After.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
'503':
description: The request could not be served safely, for example because the minute ceiling could not be counted. Retry with backoff.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
security:
- bearerAuth: []
/org/api-keys/{key_id}/revoke:
post:
tags:
- Org
summary: Revoke Api Key
description: 'Soft-revoke: set revoked_at (the verifier refuses the key on its next
request). Idempotent: an already-revoked key keeps its original timestamp
and writes no second audit row. Rows are never deleted.'
operationId: revoke_api_key_org_api_keys__key_id__revoke_post
parameters:
- name: key_id
in: path
required: true
schema:
type: string
title: Key Id
description: The key's id, as the key list serves it.
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeyOut'
'401':
description: The session credential was missing or not accepted. An API key is refused here too, because keys work only on /v1 and the MCP server.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgUnauthenticatedOut'
'403':
description: The signed in person is no workspace administrator, the request came from a framed page, or, on creation, API access is not enabled for the workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
'422':
description: The request failed validation. A body field the schema refuses answers the validation body; an expiry without a time zone or in the past, and a team that is not one of the workspace's, answer one sentence in detail.
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/HTTPValidationError'
- $ref: '#/components/schemas/OrgRefusalOut'
'429':
headers:
Retry-After:
description: Seconds to wait before the next request.
schema:
type: integer
description: The signed in person's minute ceiling was reached. Retry after the seconds in Retry-After.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
'503':
description: The request could not be served safely, for example because the minute ceiling could not be counted. Retry with backoff.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
'404':
description: No key with that id in your workspace. A key of another workspace answers the same.
content:
application/json:
schema:
$ref: '#/components/schemas/OrgRefusalOut'
security:
- bearerAuth: []
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
description: Where the failure is, the part of the request (path, query or body) and then the parameter or field.
msg:
type: string
title: Message
description: What failed, in one plain sentence. For an unknown query parameter it names the parameters the endpoint reads.
type:
type: string
title: Error Type
description: The kind of failure, such as missing, value_error, extra_forbidden for a query parameter the endpoint does not read, literal_error for a closed value outside its list, finite_number for a number that is not finite, such as 1e400, inf or nan, timezone_aware for a date and time without a UTC offset, or too_many_errors for the entry that counts the entries beyond the first 10.
type: object
required:
- loc
- msg
- type
title: ValidationError
OrgUnauthenticatedOut:
properties:
error:
$ref: '#/components/schemas/OrgErrorBodyOut'
description: The refusal, code unauthenticated with the fixed message of the errors page whatever the reason, or with the sentence detail carries where it is present.
detail:
anyOf:
- type: string
- type: 'null'
title: Detail
description: Present only when the sign in itself was accepted and the person must act, such as the request for a second factor or for sign in through single sign on.
type: object
required:
- error
title: OrgUnauthenticatedOut
description: 'The 401 of the key management routes, the one body every route answers for a
missing or refused credential, without detail.'
OrgRefusalOut:
properties:
error:
$ref: '#/components/schemas/OrgErrorBodyOut'
description: The refusal, its stable code and its sentence.
detail:
type: string
title: Detail
description: What was refused, in one plain sentence.
code:
anyOf:
- type: string
- type: 'null'
title: Code
description: Present only on a closed workspace's refusal, then workspace_parked.
type: object
required:
- error
- detail
title: OrgRefusalOut
description: 'A refusal of the key management routes, the envelope every refusal carries and the
same sentence in detail.'
OrgErrorBodyOut:
properties:
code:
type: string
title: Code
description: The refusal's stable code, the code of its status, such as not_found on a 404, or workspace_parked on a closed workspace's refusal.
message:
type: string
title: Message
description: The sentence detail carries, the one the dashboard shows.
type: object
required:
- code
- message
title: OrgErrorBodyOut
description: The refusal envelope of the key management routes.
ApiKeyOut:
properties:
id:
type: string
title: Id
description: The key's identifier, used in the revoke path.
name:
type: string
title: Name
description: The label given at creation.
key_prefix:
type: string
title: Key Prefix
description: The first characters of the full key, for matching a key you hold against the list.
role:
type: string
title: Role
description: Always viewer in this version.
scopes:
items:
type: string
type: array
title: Scopes
description: read, with audit added for a key created with audit_export and reports for a key created with report_downloads.
team_id:
type: string
title: Team Id
description: The one team the key reads. A key issued before a team could be chosen shows the default team, which is what it reads.
team_name:
anyOf:
- type: string
- type: 'null'
title: Team Name
description: That team's name, null once the team has been deleted, when the key is refused.
created_by:
type: string
title: Created By
description: The administrator who created the key.
created_at:
type: string
format: date-time
title: Created At
description: When the key was created.
last_used_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used At
description: When the key last authenticated a request. Refreshed periodically, so it can lag recent use by a short interval.
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
description: The optional expiry set at creation, null when the key does not expire.
revoked_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Revoked At
description: When the key was revoked, null while it is live.
type: object
required:
- id
- name
- key_prefix
- role
- scopes
- team_id
- team_name
- created_by
- created_at
- last_used_at
- expires_at
- revoked_at
title: ApiKeyOut
description: 'Key metadata: the ONLY shape this surface ever returns for an existing
key. No key_hash field exists here by design.'
ApiKeyCreatedOut:
properties:
secret:
type: string
title: Secret
description: The full key, shown in this response only. Store it at once, it cannot be retrieved later.
key:
$ref: '#/components/schemas/ApiKeyOut'
description: The new key's metadata.
type: object
required:
- secret
- key
title: ApiKeyCreatedOut
description: 'The create response: the one and only appearance of the plaintext.'
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
maxItems: 11
description: At most 10 entries, in the order the request was checked. When there are more, one further entry of type too_many_errors with an empty loc counts them in its msg. A loc part longer than 64 bytes and a msg longer than 2,048 bytes are cut and end in ...
error:
type: object
title: Error
description: The refusal envelope, code validation_failed.
properties:
code:
type: string
description: validation_failed on every 422.
message:
type: string
description: The fixed message of the code, never a value sent.
required:
- code
- message
type: object
title: HTTPValidationError
required:
- error
ApiKeyCreateIn:
properties:
name:
type: string
maxLength: 120
minLength: 1
title: Name
description: The key's label, 1 to 120 characters.
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
description: Optional expiry with a time zone, in the future. Without it the key stays valid until it is revoked.
audit_export:
type: boolean
title: Audit Export
default: false
description: True gives the key the audit scope, so it may also read GET /v1/audit-log.csv. The key stays a read only key of its team for everything else.
report_downloads:
type: boolean
title: Report Downloads
default: false
description: True gives the key the reports scope, so it may also download the report and committee pack PDFs of what it reads.
team_id:
anyOf:
- type: string
maxLength: 16
- type: 'null'
title: Team Id
description: The one team of your workspace the key reads, by its id of at most 16 characters. Omitted, the key reads the default team.
additionalProperties: false
type: object
required:
- name
title: ApiKeyCreateIn
ApiKeyListOut:
properties:
api_access_active:
type: boolean
title: Api Access Active
description: Whether API access is enabled for the workspace.
api_access_expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Api Access Expires At
description: When API access ends, set only while access is active and carries an end date, otherwise null.
keys:
items:
$ref: '#/components/schemas/ApiKeyOut'
type: array
title: Keys
description: The workspace's keys, newest first, revoked keys included, since keys are never deleted.
type: object
required:
- api_access_active
- api_access_expires_at
- keys
title: ApiKeyListOut
description: 'The list envelope: this tenant''s keys plus its API-access status, the
workspace''s read of the entitlement. `api_access_expires_at` (the trial
end) is populated only while access is active; a dead grant''s stale date
would mislead.'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: An API key (swk_live_ followed by 40 characters) on /v1, a workspace administrator's session token on /org/api-keys.