Pushary Authorization API
Evaluate an action against the workspace policy.
Evaluate an action against the workspace policy.
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/pushary-com:pushary-com-authorization-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: Pushary Com Authorization API
version: 1.0.0
contact:
name: Pushary
url: https://pushary.com/docs
email: business@pushary.com
termsOfService: https://pushary.com/terms
description: 'Operations tagged Authorization across 2 of this provider''s published API definitions: pushary-com-openapi.json, pushary-com.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://pushary.com
description: Production
security:
- bearerAuth: []
tags:
- name: Authorization
description: Evaluate an action against the workspace policy.
paths:
/api/v1/server/authorize:
post:
operationId: authorizeAction
summary: Evaluate an action against the authorization policy
description: 'Runs an action through the workspace authorization rules and returns `allow`, `deny`, or `requires_human`. On `requires_human` the caller opens a decision (the SDK does this for you). Fail-closed: anything the rules do not allow is not allowed.'
tags:
- Authorization
requestBody:
required: true
description: The action to authorize.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizeRequest'
responses:
'200':
description: The policy verdict.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizationEvaluation'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://pushary.com
description: Production
/api/v1/server/authorizations/consume:
post:
operationId: consumeAuthorization
summary: Consume a settled authorization once
description: Requires the Partner plan. Restate the exact approved action to obtain its one-use execution permit before performing the side effect. A mismatched, expired, denied or already consumed authorization is refused. Never execute on a refusal or transport error.
tags:
- Authorization
requestBody:
required: true
description: The authorization and exact action about to execute.
content:
application/json:
schema:
$ref: '#/components/schemas/ConsumeAuthorizationRequest'
responses:
'200':
description: Permit for this execution.
content:
application/json:
schema:
$ref: '#/components/schemas/ExecutionPermit'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: Authorization cannot be consumed for this action.
content:
application/json:
schema:
$ref: '#/components/schemas/AuthorizationRefusal'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://pushary.com
description: Production
/api/v1/server/authorizations/{permitId}/receipt:
post:
operationId: recordExecutionReceipt
summary: Record the execution outcome
description: Requires the Partner plan. Records whether the permitted action succeeded or failed. A bound key can close only its own recipient’s permit. An unknown permit returns 404; a conflicting recorded outcome returns 409.
tags:
- Authorization
parameters:
- name: permitId
in: path
required: true
description: Permit returned by consumeAuthorization.
schema:
type: string
requestBody:
required: true
description: What the permitted action actually did.
content:
application/json:
schema:
$ref: '#/components/schemas/ExecutionReceiptRequest'
responses:
'200':
description: The recorded execution state.
content:
application/json:
schema:
$ref: '#/components/schemas/ExecutionReceiptResult'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: The permit already recorded a different outcome.
content:
application/json:
schema:
$ref: '#/components/schemas/ExecutionReceiptConflict'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://pushary.com
description: Production
components:
schemas:
ExecutionReceiptConflict:
type: object
required:
- error
- reason
properties:
error:
type: string
description: Why this receipt was refused.
reason:
type: string
description: Machine-readable conflict reason.
AuthorizationRefusal:
type: object
required:
- error
- refusal
properties:
error:
type: string
description: Why execution was refused.
refusal:
type: string
description: Machine-readable refusal reason.
executionState:
type: string
description: Current execution state, when available.
AuthorizeRequest:
allOf:
- $ref: '#/components/schemas/DecisionSubject'
- type: object
required:
- toolName
properties:
toolName:
type: string
description: 'The action being authorized. Required: a rule has to name it.'
externalId:
type: string
description: Your own id for the end-user this action belongs to.
question:
type: string
description: Shown to the person if policy defers to one. Defaults to the action and its target.
agentName:
type: string
description: Shown to the person so they know which agent is asking.
ExecutionReceiptRequest:
type: object
required:
- outcome
properties:
outcome:
type: string
description: Result of the permitted side effect.
enum:
- succeeded
- failed
summary:
type: string
description: Optional description of the result.
ExecutionPermit:
type: object
required:
- permitId
- authority
- expiresAt
properties:
permitId:
type: string
description: One-use execution permit identifier.
authority:
type: string
description: The authority that permitted execution.
expiresAt:
type: string
description: When the permit expires.
format: date-time
ConsumeAuthorizationRequest:
allOf:
- $ref: '#/components/schemas/DecisionSubject'
- type: object
required:
- authorizationId
- toolName
properties:
authorizationId:
type: string
description: The settled authorization to consume.
maxLength: 200
toolName:
type: string
description: The exact action originally authorized.
externalId:
type: string
description: Recipient originally authorized; bound keys force their own recipient.
ExecutionReceiptResult:
type: object
required:
- permitId
- executionState
properties:
permitId:
type: string
description: The execution permit being closed.
executionState:
type: string
description: Recorded outcome.
enum:
- succeeded
- failed
AuthorizationEvaluation:
type: object
description: The raw policy verdict, before a `requires_human` verdict is resolved by asking a person.
required:
- verdict
- policy
- reason
- authorizationId
properties:
verdict:
type: string
description: What policy decided.
enum:
- allow
- deny
- requires_human
policy:
type:
- string
- 'null'
description: The rule that decided, or null when no rule named the action.
reason:
type: string
description: Why.
authorizationId:
type:
- string
- 'null'
description: The audit row this evaluation produced.
Error:
type: object
description: JSON error response. Shared authentication and validation errors include code and diagnostics; some endpoint errors return only error. Branch on HTTP status and code when present, not message text.
required:
- error
properties:
error:
type: string
description: Human-readable summary.
code:
type: string
description: Machine-readable classification, when available. Common values include unauthorized, forbidden, invalid_request, not_found, method_not_allowed and rate_limited.
status:
type: integer
description: The HTTP status code, repeated in the body for transports that hide it.
message:
type: string
description: What went wrong, in one sentence.
hint:
type: string
description: What to do about it.
documentation:
type: string
description: URL of the documentation page for this rule.
format: uri
DecisionSubject:
type: object
description: 'What a decision is about. Every field optional: a free-text question alone is a complete decision. Supplying these lets the decision be grouped, risk-classified and matched against a permission rule.'
properties:
toolName:
type: string
description: The action, e.g. `refund.create` or `database.write`.
toolTarget:
type: string
description: What the action acts on.
actor:
type: string
description: Whose authority the action claims, e.g. `user:u_44`. Not necessarily the approver. Maximum 120 characters.
maxLength: 120
environment:
type: string
description: Which deployment the action runs against, e.g. `production`. Maximum 40 characters.
maxLength: 40
parameters:
type: object
description: 'Typed arguments of the action, e.g. `{ "amount": 4800, "currency": "EUR" }`. Scalars only, at most 32 keys. A non-scalar value rejects the whole request with 400 rather than being dropped: a rule that reads a missing parameter can only ever decide more permissively than one that reads it.'
additionalProperties:
type:
- string
- number
- boolean
responses:
RateLimited:
description: Too many requests. `X-RateLimit-Remaining` and `X-RateLimit-Reset` are on every response.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
description: 'The key is valid but not allowed to do this: wrong scope, wrong plan, or a locked workspace.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: The request body or parameters were rejected.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: No such resource, or no such endpoint.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: The API key is missing, malformed or revoked.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'A Pushary API key, sent as `Authorization: Bearer pk_xxx.xxx`. Create one with `npx -y pushary@latest setup` or in Dashboard > Agent > Settings. The MCP endpoint additionally accepts OAuth 2.0; see /.well-known/oauth-protected-resource.'
externalDocs:
description: Pushary documentation
url: https://pushary.com/docs
x-refined-from:
- pushary-com-openapi.json
- pushary-com.json