Zevari Confirmations API

The confirmations API from Zevari, for confirmations.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

POST /v1/confirmations/requestAction Request action approval #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zevari-ai:zevari-ai-confirmations-api"
All apis
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.

Get an API 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 Specification

zevari-ai-confirmations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Zevari Public Confirmations API
  version: v1
  summary: REST API over Zevari's MCP-backed LinkedIn, campaign, lead, content, and agent capabilities.
  description: 'Zevari exposes an HTTPS JSON REST API described by an OpenAPI 3.1 contract. The production base URL is `https://api.zevari.ai`. The API is built from the same public method contract used by Zevari''s MCP-backed execution layer. Use the MCP reference when an AI assistant needs tool behavior, approval boundaries, or workflow semantics. Use this API reference when you need direct HTTP endpoints, schemas, request examples, and response shapes for a scheduled runner, CRM integration, internal tool, or agent bridge. Transport model: Zevari''s public API uses endpoint-specific HTTP methods. Read operations use `GET` with query parameters. Create, action, approval, and generation operations use `POST` with a JSON body. Updates use `PATCH` with a JSON body. Deletes use `DELETE` with a JSON body when parameters are required. To use the public API, you need a Zevari account, an active workspace subscription, and permission to the workspace and LinkedIn sender or workspace resource that backs the workflow. LinkedIn-backed actions depend on the connected sender account and Zevari''s documented approval and safety behavior. Approval workflow for automated runners: create or update the workspace policy with `approvalPolicy.update` when an owner/admin wants hands-off execution. `mode: "autopilot"` with `autopilot_campaigns_enabled: true` (the legacy value `autopilot_expanded` still works and means the same) approves eligible low/medium-risk actions on its own, plus eligible campaign launches and enrollments of any size and action bundles of up to 20; the Safety Center still paces what reaches LinkedIn. It does not bypass safety, warm-up, high-risk/manual boundaries, InMail, standalone public posts, paid work, tainted data, deletes, exports, or account controls. For a confirmation-gated REST write, call `confirmations.requestAction` with the exact executable payload first. If the response includes `data.autopilot.approved: true`, immediately call the write endpoint with the returned `confirmation_id`. If Autopilot is absent, false, or a policy or duplicate-withhold denial is returned, show or store `data.approval_url`, wait for the user to approve in Zevari, then retry the write endpoint with the same `confirmation_id`. REST clients should not call MCP-only chat approval tools. Personalized campaign enrollment is the convenience exception: call `campaigns.addTargets` directly with each target''s complete `personalized_steps` and a stable idempotency key. That call stages `campaign_enroll_personalized_targets` itself and either applies immediately under eligible Autopilot policy or returns the confirmation and exact retry guidance. After manual approval, repeat the exact request with `confirmation_id`. Campaign creation is a two-phase workflow. `campaigns.create` saves a draft. To launch it, stage `confirmations.requestAction` with `action_type: "campaign_activate"` and `payload: { "campaign_id": "..." }`, then call `campaigns.updateStatus` with `status: "active"` and the approved `confirmation_id`. Under Autopilot with campaign launches on (`autopilot` + `autopilot_campaigns_enabled: true`, legacy `autopilot_expanded`), eligible campaign activations of any size can come back already approved. Campaign enrollment is discoverable from runtime responses. `campaigns.create` returns `status`, effective `enrollment_mode`, `targets_editable`, `add_targets_method`, and `next_action`. Enrollment defaults to `fixed`; choose `continuous` when shared-copy additions should remain open. Active fixed and continuous campaigns both accept approval-bound per-target personalized sequences without pausing. Draft or paused additions remain unscheduled. Terminal campaigns are immutable, so create a new campaign instead. Create API keys in the Zevari app at Dashboard Settings - API Keys. API keys start with `zvr_api_` and authenticate public API requests with `Authorization: Bearer `.'
servers:
- url: https://api.zevari.ai
tags:
- name: confirmations
paths:
  /v1/confirmations/requestAction:
    post:
      tags:
      - confirmations
      operationId: confirmations_requestAction
      summary: Request action approval
      description: 'Transport: call this endpoint with HTTP POST and a JSON request body. Stage an approval-gated action for the public REST API. Call this before outbound LinkedIn/email writes and campaign activation. Personalized campaign enrollment is intentionally excluded: call campaigns.addTargets with personalized_steps so the idempotency receipt is reserved before its internal campaign_enroll_personalized_targets approval is staged. Campaign activation can be staged only while the campaign is draft or paused. Terminal, processing, active, and archived campaign activation is rejected before a confirmation is created or Autopilot is evaluated with CAMPAIGN_INVALID_STATUS_TRANSITION. Automated flow: if the response data includes autopilot.approved=true, immediately retry the gated write with the returned confirmation_id. If Autopilot is not approved, show or store approval_url, wait for browser approval in Zevari, then retry the gated write with the same confirmation_id. For linkedin_send_connection_request payloads, note length is tier-limited before approval: free LinkedIn senders support up to 200 characters; paid/Premium/Sales Navigator senders support up to 300. Over-limit notes return HTTP 400 with ok=false and data.error=''connection_note_too_long''. REST clients do not have access to MCP-only chat approval tools.'
      x-zevari-http-method: POST
      x-zevari-tool: actions_request_confirmation
      x-zevari-method:
        method: confirmations.requestAction
        http_method: POST
        namespace: confirmations
        operation: requestAction
        path: /v1/confirmations/requestAction
        api_version: v1
        tool_name: actions_request_confirmation
        docs_url: https://docs.zevari.ai/api/reference#confirmations-requestAction
        sensitive: true
      x-sensitive: true
      x-agent-guidance: 'Stage the exact executable payload for an action_type in this endpoint''s schema. Personalized campaign enrollment is unsupported here: start with campaigns.addTargets and include the stable idempotency key plus each target''s complete personalized_steps. campaigns.addTargets reserves the receipt, stages its internal approval, and returns the exact retry when manual approval is required.'
      externalDocs:
        url: https://docs.zevari.ai/api/reference#confirmations-requestAction
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Successful Zevari API response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZevariResponseEnvelope'
              examples:
                default:
                  value:
                    ok: true
                    method: confirmations.requestAction
                    data: {}
                    request_id: req_example
        '400':
          description: CAMPAIGN_INVALID_STATUS_TRANSITION is returned when campaign activation is staged outside draft/paused; other invalid staged payloads or arguments return their documented errors.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/ZevariErrorEnvelope'
                - $ref: '#/components/schemas/ZevariResponseEnvelope'
              examples:
                invalid_campaign_transition:
                  value:
                    ok: false
                    method: confirmations.requestAction
                    data:
                      error_code: CAMPAIGN_INVALID_STATUS_TRANSITION
                      campaign_id: campaign_uuid
                      current_status: completed
                      requested_status: active
                      message: The requested campaign lifecycle transition is not allowed.
                      recovery_action: Create a new campaign; terminal campaigns cannot be reactivated.
                    request_id: req_example
                personalized_snapshot_invalid:
                  value:
                    ok: false
                    method: confirmations.requestAction
                    data:
                      error_code: CAMPAIGN_PERSONALIZED_SNAPSHOT_INVALID
                      campaign_id: campaign_uuid
                      message: Cannot stage campaign activation because personalized target snapshots no longer match the current campaign steps.
                      errors:
                      - Personalized target target_uuid is missing snapshot for step 3 (message).
                      recovery_action: Restore the approved step structure or create a new campaign, then validate and stage fresh activation approval.
                    request_id: req_example
                connection_note_too_long_free:
                  value:
                    ok: false
                    method: confirmations.requestAction
                    data:
                      error: connection_note_too_long
                      message: Connection request note is 230 characters, exceeding the LinkedIn free account limit of 200.
                      details:
                        note_length: 230
                        max_length: 200
                        tier: free
                    request_id: req_example
                invalid_arguments:
                  value:
                    error:
                      code: invalid_arguments
                      message: Invalid arguments for confirmations.requestAction.
                      docs_url: https://docs.zevari.ai/api/reference#confirmations-requestAction
                      suggested_action: Compare the request body to this endpoint's OpenAPI schema and retry with only documented parameters.
                      details:
                      - code: invalid_type
                        path:
                        - action_type
                        message: Required
                    request_id: req_example
        '401':
          description: Missing, invalid, expired, revoked, or unauthorized API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZevariErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      code: invalid_api_key
                      message: The supplied Zevari API key is invalid, expired, revoked, or not authorized for this organization.
                      docs_url: https://docs.zevari.ai/api/reference#confirmations-requestAction
                      suggested_action: Create a fresh Zevari API key for the target organization and LinkedIn sender, then retry.
                    request_id: req_example
        '404':
          description: Unknown or non-public Zevari API method.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZevariErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      code: unknown_method
                      message: 'Unknown Zevari API method: requested.method'
                      docs_url: https://docs.zevari.ai/api/reference#confirmations-requestAction
                      suggested_action: Fetch /v1/methods or /v1/openapi.json and retry with a documented endpoint.
                    request_id: req_example
        '429':
          description: API key rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZevariErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      code: rate_limited
                      message: API key rate limit exceeded.
                      docs_url: https://docs.zevari.ai/api/reference#confirmations-requestAction
                      suggested_action: Wait for the current hourly API-key rate-limit window to reset, then retry.
                    request_id: req_example
        '500':
          description: Unhandled server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ZevariErrorEnvelope'
              examples:
                default:
                  value:
                    error:
                      code: api_handler_error
                      message: Zevari API request failed while executing the method.
                      docs_url: https://docs.zevari.ai/api/reference#confirmations-requestAction
                      suggested_action: Read the endpoint docs_url, verify the request body and active Zevari context, then retry.
                    request_id: req_example
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                action_type:
                  type: string
                  enum:
                  - linkedin_send_message
                  - linkedin_send_inmail
                  - linkedin_send_connection_request
                  - linkedin_cancel_invitation
                  - linkedin_respond_invitation
                  - linkedin_create_post
                  - linkedin_comment_on_post
                  - linkedin_react_to_post
                  - linkedin_react_post_comment
                  - email_send_message
                  - campaign_activate
                  - campaign_update_target_set
                  - campaign_update_step_config
                  - bulk_delete
                  - bulk_export
                  - agents_enrich_email_batch
                  - account_reparent
                  description: 'The exact allowlisted action family this confirmation gates. Valid values are LinkedIn/email sends/InMails/posts/comments/reactions, campaign_activate, campaign_update_target_set, campaign_update_step_config, bulk_delete, bulk_export, and agents_enrich_email_batch. For campaign activation, use ''campaign_activate'' with payload={campaign_id: <id>}. Personalized enrollment must use campaigns.addTargets, which stages its receipt-bound confirmation internally. Entity saves such as targets_save are not valid action_types and do not need confirmation.'
                payload:
                  type: object
                  additionalProperties: {}
                  description: The COMPLETE action payload. LinkedIn writes are validated at stage time; connection requests accept saved lead/provider/public/profile URL aliases and are stored as canonical provider-ID payloads, while linkedin_comment_on_post/linkedin_react_to_post postId values are resolved to the post's social_id before approval. After approval, execution uses this stored approved payload as the source of truth.
                cost_estimate_cents:
                  type: integer
                  minimum: 0
                  description: Estimated external cost in cents (e.g. email enrichment reveals). Shown to the user on the approval page.
                content_policy_override:
                  type: array
                  items:
                    type: object
                    properties:
                      kind:
                        type: string
                        enum:
                        - literal
                        - token
                        - rule
                      value:
                        type: string
                        minLength: 1
                        maxLength: 200
                    required:
                    - kind
                    - value
                    additionalProperties: false
                  maxItems: 50
                  description: Send despite these content-policy entries. Pass the refusal's override_entries exactly, and only after the user explicitly agreed to send anyway. Entries not listed still block. A message sent this way waits for the user's approval unless the workspace runs Autopilot Unattended.
              required:
              - action_type
              - payload
              additionalProperties: false
            examples:
              default:
                value:
                  action_type: campaign_activate
                  payload:
                    campaign_id: campaign_uuid
components:
  schemas:
    ZevariErrorEnvelope:
      type: object
      required:
      - error
      - request_id
      properties:
        error:
          $ref: '#/components/schemas/ZevariError'
        request_id:
          type: string
          description: Request correlation ID. Also returned in X-Zevari-Request-Id.
      additionalProperties: false
    ZevariResponseEnvelope:
      type: object
      required:
      - ok
      - method
      - data
      - request_id
      properties:
        ok:
          type: boolean
          description: False when the underlying tool reports an error or a partial failure.
        method:
          type: string
          description: Public API method name.
          examples:
          - campaigns.delete
        data:
          description: Parsed tool result. Shape is endpoint-specific.
        request_id:
          type: string
          description: Request correlation ID. Also returned in X-Zevari-Request-Id.
      additionalProperties: false
    ZevariError:
      type: object
      required:
      - code
      - message
      - docs_url
      - suggested_action
      properties:
        code:
          type: string
          description: Stable machine-readable error code.
          examples:
          - invalid_arguments
        message:
          type: string
          description: Human-readable error message.
        docs_url:
          type: string
          format: uri
          description: Endpoint-specific documentation URL to review before retrying.
        suggested_action:
          type: string
          description: Concrete recovery action for clients or agents.
        details:
          description: Optional structured validation or execution details.
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Zevari API key
      description: Use a Zevari API key created in dashboard settings. API keys start with zvr_api_.