SAGARIS Sequences API

List sequences and enroll contacts.

GitHub OpenAPI

Operations 2

GET /sequences List sequences #
POST /sequences/enroll Enroll a contact in a sequence #

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/sagaris:sagaris-sequences-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

sagaris-sequences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SAGARIS Public Sequences API
  version: 1.0.0
  description: 'Versioned public REST API (/api/v1). Authenticate with a workspace-scoped API key as a Bearer token (Authorization: Bearer ros_live_...). The workspace is resolved from the key; no client-supplied workspace id is ever trusted. Writes are rate-limited per key, and the writes that declare an Idempotency-Key header honour it. This document is served unauthenticated as developer documentation.'
  termsOfService: https://www.sagaris.ai/terms
  contact:
    name: SAGARIS Support
    url: https://www.sagaris.ai/contact
    email: support@sagaris.ai
servers:
- url: https://www.sagaris.ai/api/v1
  description: Versioned public API surface.
security:
- ApiKeyAuth: []
tags:
- name: Sequences
  description: List sequences and enroll contacts.
paths:
  /sequences:
    get:
      tags:
      - Sequences
      summary: List sequences
      description: List email sequences in the key's workspace, newest first. Requires the sequences.read scope.
      operationId: listSequences
      security:
      - ApiKeyAuth:
        - sequences.read
      parameters:
      - name: limit
        in: query
        required: false
        description: Page size. Clamped to 1..100; defaults to 25.
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
      - name: offset
        in: query
        required: false
        description: Zero-based row offset. Defaults to 0.
        schema:
          type: integer
          minimum: 0
          default: 0
      responses:
        '200':
          description: A paginated list of sequences.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Sequence'
                  meta:
                    $ref: '#/components/schemas/ListMeta'
                  error:
                    type: 'null'
                required:
                - data
                - meta
                - error
        '401':
          description: Missing, malformed, invalid, revoked, or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key does not hold the required scope for this operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Query failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: The database / API-keys table is not provisioned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /sequences/enroll:
    post:
      tags:
      - Sequences
      summary: Enroll a contact in a sequence
      description: 'Enroll a workspace-owned contact into a workspace-owned email sequence. The sequence must carry an applied approval whose authorized audience covers the contact (PRD §29: approval cannot be bypassed via the API); otherwise the request is rejected with 409. Requires the sequences.write scope.'
      operationId: enrollInSequence
      security:
      - ApiKeyAuth:
        - sequences.write
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: Opaque client-supplied key. A retry with the same key replays the original response instead of writing again.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - sequence_id
              - contact_id
              properties:
                sequence_id:
                  type: string
                  description: A sequence in the key's workspace.
                contact_id:
                  type: string
                  description: A contact in the key's workspace.
      responses:
        '201':
          description: The created enrollment.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/SequenceEnrollment'
                  error:
                    type: 'null'
                required:
                - data
                - error
        '400':
          description: Invalid JSON body or field validation failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, malformed, invalid, revoked, or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key does not hold the required scope for this operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The sequence or contact was not found in the key's workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The sequence has no applied approval (`sequence_not_authorized`), or the contact is outside the applied approval's authorized audience (`contact_not_authorized`). Enrollment through the API cannot bypass approval (PRD §29).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Per-key write rate limit exceeded (60 requests / 60s).
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Lookup or insert failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: The database / API-keys table is not provisioned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SequenceEnrollment:
      type: object
      properties:
        id:
          type: string
        sequence_id:
          type: string
        contact_id:
          type: string
        workspace_id:
          type: string
        status:
          type: string
        current_step:
          type: integer
        enrolled_at:
          type: string
          format: date-time
          nullable: true
    Sequence:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      description: The standard v1 error envelope.
      properties:
        data:
          type: 'null'
        error:
          type: string
          description: Human-readable error message.
        code:
          type: string
          description: Machine-readable error code (e.g. validation_failed, rate_limited).
        correlationId:
          type: string
          description: Present on unexpected 500s for support correlation.
      required:
      - data
      - error
    ListMeta:
      type: object
      properties:
        total:
          type: integer
          nullable: true
        limit:
          type: integer
        offset:
          type: integer
        hasMore:
          type: boolean
      required:
      - total
      - limit
      - offset
      - hasMore
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Workspace-scoped API key presented as a Bearer token (Authorization: Bearer ros_live_...). The workspace is resolved from the key.'