zSign Sessions API

The sessions API from zSign — 10 operation(s) for sessions.

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 11

GET /api/sessions/{session_id}/comments Get Comment Threads #
POST /api/sessions/{session_id}/comments/{comment_id}/replies Create Comment Reply #
PATCH /api/sessions/{session_id}/comments/{reply_id} Edit Comment Reply #
DELETE /api/sessions/{session_id}/comments/{reply_id} Delete Comment Reply #
POST /api/sessions/{session_id}/comments/{comment_id}/resolve Resolve Comment Thread #
POST /api/sessions/{session_id}/comments/{comment_id}/reopen Reopen Comment Thread #
GET /api/sessions/{session_id}/resolve Resolve Session Org #
GET /api/sessions/{session_id} Get Session #
POST /api/sessions/{session_id}/void Void Session #
POST /api/sessions/{session_id}/recipients/{recipient_id}/remind Remind Recipient #
POST /api/sessions/{session_id}/recipients/{recipient_id}/email Correct Recipient Email #

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/zsign-io:zsign-io-sessions-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

zsign-io-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: zSign Sessions API
  description: Document Processing and Signing Sessions API
  version: 1.0.0
tags:
- name: Sessions
paths:
  /api/sessions/{session_id}/comments:
    get:
      tags:
      - Sessions
      summary: Get Comment Threads
      operationId: get_comment_threads_api_sessions__session_id__comments_get
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      - name: include_resolved
        in: query
        required: false
        schema:
          type: boolean
          default: true
          title: Include Resolved
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThreadsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/{session_id}/comments/{comment_id}/replies:
    post:
      tags:
      - Sessions
      summary: Create Comment Reply
      operationId: create_comment_reply_api_sessions__session_id__comments__comment_id__replies_post
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      - name: comment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Comment Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommentTextRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/{session_id}/comments/{reply_id}:
    patch:
      tags:
      - Sessions
      summary: Edit Comment Reply
      operationId: edit_comment_reply_api_sessions__session_id__comments__reply_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      - name: reply_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Reply Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommentTextRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Sessions
      summary: Delete Comment Reply
      operationId: delete_comment_reply_api_sessions__session_id__comments__reply_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      - name: reply_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Reply Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/{session_id}/comments/{comment_id}/resolve:
    post:
      tags:
      - Sessions
      summary: Resolve Comment Thread
      operationId: resolve_comment_thread_api_sessions__session_id__comments__comment_id__resolve_post
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      - name: comment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Comment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/{session_id}/comments/{comment_id}/reopen:
    post:
      tags:
      - Sessions
      summary: Reopen Comment Thread
      operationId: reopen_comment_thread_api_sessions__session_id__comments__comment_id__reopen_post
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      - name: comment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Comment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/{session_id}/resolve:
    get:
      tags:
      - Sessions
      summary: Resolve Session Org
      description: 'Return which of the caller''s ACTIVE-membership orgs holds this envelope

        (same rule as GET /api/documents/{id}/session). Unknown and foreign ids

        get the same 404. Returns ids and the org name only, no session content.'
      operationId: resolve_session_org_api_sessions__session_id__resolve_get
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/{session_id}:
    get:
      tags:
      - Sessions
      summary: Get Session
      description: Get session details
      operationId: get_session_api_sessions__session_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/{session_id}/void:
    post:
      tags:
      - Sessions
      summary: Void Session
      description: Void a live envelope.
      operationId: void_session_api_sessions__session_id__void_post
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionVoidRequest'
              default: {}
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionVoidResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/{session_id}/recipients/{recipient_id}/remind:
    post:
      tags:
      - Sessions
      summary: Remind Recipient
      description: 'Send one signing reminder to a still-unsigned recipient.


        Reuses `reminder_service` (the same stack the cron sweep uses): same

        signing link, same cap, same spacing after the first remind, same

        sequential `can_sign_now` gate. `REMINDERS_ENABLED` does not apply --

        this is owner-initiated. Envelopes sent with `send_invite=false` are

        refused unless `override_send_invite` is true.'
      operationId: remind_recipient_api_sessions__session_id__recipients__recipient_id__remind_post
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      - name: recipient_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Recipient Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecipientRemindRequest'
              default:
                override_send_invite: false
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientRemindResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/sessions/{session_id}/recipients/{recipient_id}/email:
    post:
      tags:
      - Sessions
      summary: Correct Recipient Email
      description: 'Correct the email of an unsigned recipient on a live envelope.


        Same recipient row; the signing credential rotates to the corrected

        address and the previous address is notified. Does not void the envelope,

        so signatures already collected from other recipients stay valid. Sends a

        fresh invite when this envelope''s invites are sent by zSign.'
      operationId: correct_recipient_email_api_sessions__session_id__recipients__recipient_id__email_post
      security:
      - HTTPBearer: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Session Id
      - name: recipient_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Recipient Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecipientEmailCorrectionRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientEmailCorrectionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CommentThreadOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        page:
          type: integer
          title: Page
        field_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Field Id
        field_label:
          anyOf:
          - type: string
          - type: 'null'
          title: Field Label
        x:
          anyOf:
          - type: number
          - type: 'null'
          title: X
        y:
          anyOf:
          - type: number
          - type: 'null'
          title: Y
        w:
          anyOf:
          - type: number
          - type: 'null'
          title: W
        h:
          anyOf:
          - type: number
          - type: 'null'
          title: H
        anchor_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Anchor Text
        anchor_moved:
          type: boolean
          title: Anchor Moved
        text:
          type: string
          title: Text
        author:
          $ref: '#/components/schemas/CommentAuthorOut'
        created_at:
          type: string
          format: date-time
          title: Created At
        edited_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Edited At
        resolved_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Resolved At
        resolved_by:
          anyOf:
          - $ref: '#/components/schemas/CommentAuthorOut'
          - type: 'null'
        replies:
          items:
            $ref: '#/components/schemas/CommentReplyOut'
          type: array
          title: Replies
        can_resolve:
          type: boolean
          title: Can Resolve
      type: object
      required:
      - id
      - page
      - anchor_moved
      - text
      - author
      - created_at
      - can_resolve
      title: CommentThreadOut
    ChangeRequestCommentOut:
      properties:
        page:
          type: integer
          title: Page
        field_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Field Id
        field_label:
          anyOf:
          - type: string
          - type: 'null'
          title: Field Label
        x:
          anyOf:
          - type: number
          - type: 'null'
          title: X
        y:
          anyOf:
          - type: number
          - type: 'null'
          title: Y
        width:
          anyOf:
          - type: number
          - type: 'null'
          title: Width
        height:
          anyOf:
          - type: number
          - type: 'null'
          title: Height
        anchor_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Anchor Text
        text:
          type: string
          title: Text
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - page
      - text
      - created_at
      title: ChangeRequestCommentOut
    ThreadsResponse:
      properties:
        enabled:
          type: boolean
          title: Enabled
        read_only:
          type: boolean
          title: Read Only
        require_resolved:
          type: boolean
          title: Require Resolved
          default: false
        threads:
          items:
            $ref: '#/components/schemas/CommentThreadOut'
          type: array
          title: Threads
      type: object
      required:
      - enabled
      - read_only
      title: ThreadsResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    RecipientStatus:
      type: string
      enum:
      - pending
      - completed
      title: RecipientStatus
    CommentReplyOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        text:
          type: string
          title: Text
        author:
          $ref: '#/components/schemas/CommentAuthorOut'
        created_at:
          type: string
          format: date-time
          title: Created At
        edited_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Edited At
        can_edit:
          type: boolean
          title: Can Edit
      type: object
      required:
      - id
      - text
      - author
      - created_at
      - can_edit
      title: CommentReplyOut
    EnvelopeDocumentOut:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        filename:
          type: string
          title: Filename
        page_start:
          type: integer
          title: Page Start
        page_count:
          type: integer
          title: Page Count
        position:
          type: integer
          title: Position
      type: object
      required:
      - id
      - name
      - filename
      - page_start
      - page_count
      - position
      title: EnvelopeDocumentOut
      description: One document inside an envelope, as every wire payload lists it.
    RecipientRemindRequest:
      properties:
        override_send_invite:
          type: boolean
          title: Override Send Invite
          default: false
      type: object
      title: RecipientRemindRequest
    SessionStatus:
      type: string
      enum:
      - pending
      - in_progress
      - completed
      - voided
      - declined
      - expired
      - cancelled
      - deleted
      title: SessionStatus
    CommentAuthorOut:
      properties:
        kind:
          type: string
          enum:
          - sender
          - signer
          - agent
          title: Kind
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        initials:
          type: string
          title: Initials
      type: object
      required:
      - kind
      - name
      - initials
      title: CommentAuthorOut
    SessionProgress:
      properties:
        completed:
          type: integer
          title: Completed
        total:
          type: integer
          title: Total
        percentage:
          type: integer
          title: Percentage
      type: object
      required:
      - completed
      - total
      - percentage
      title: SessionProgress
    EnvelopeActivityEvent:
      properties:
        occurred_at:
          type: string
          format: date-time
          title: Occurred At
        event_type:
          type: string
          enum:
          - sent
          - reminded
          - viewed
          - signed
          - voided
          - declined
          - changes_requested
          - recipient_email_corrected
          title: Event Type
        actor_email:
          anyOf:
          - type: string
          - type: 'null'
          title: Actor Email
        actor_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Actor Name
        recipient_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Recipient Id
        detail:
          anyOf:
          - type: string
          - type: 'null'
          title: Detail
      type: object
      required:
      - occurred_at
      - event_type
      title: EnvelopeActivityEvent
      description: 'One owner-facing activity row for a live or finished envelope.


        `occurred_at` is copied from a stored column or audit row. Callers must

        not invent one. `detail` is a short fact already on that row (a void

        reason, an old→new email, who asked for a reminder). It is omitted when

        nothing extra was recorded.'
    RecipientEmailCorrectionRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
      type: object
      required:
      - email
      title: RecipientEmailCorrectionRequest
    RecipientEmailCorrectionResponse:
      properties:
        session_id:
          type: string
          format: uuid
          title: Session Id
        recipient_id:
          type: string
          format: uuid
          title: Recipient Id
        email:
          type: string
          title: Email
        previous_email:
          type: string
          title: Previous Email
        invite_sent:
          type: boolean
          title: Invite Sent
      type: object
      required:
      - session_id
      - recipient_id
      - email
      - previous_email
      - invite_sent
      title: RecipientEmailCorrectionResponse
    RecipientResponse:
      properties:
        recipient_id:
          type: string
          format: uuid
          title: Recipient Id
        name:
          type: string
          title: Name
        email:
          type: string
          title: Email
        role:
          type: string
          title: Role
        signing_order:
          type: integer
          title: Signing Order
        status:
          $ref: '#/components/schemas/RecipientStatus'
        signing_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Signing Url
        signed_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Signed At
        viewed_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Viewed At
        can_remind:
          type: boolean
          title: Can Remind
          default: false
        change_request:
          anyOf:
          - $ref: '#/components/schemas/ChangeRequestOut'
          - type: 'null'
      type: object
      required:
      - recipient_id
      - name
      - email
      - role
      - signing_order
      - status
      title: RecipientResponse
    SessionResponse:
      properties:
        session_id:
          type: string
          format: uuid
          title: Session Id
        revision_of:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Revision Of
        superseded_by:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Superseded By
        revision_draft_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Revision Draft Id
        status:
          $ref: '#/components/schemas/SessionStatus'
        document_id:
          type: string
          format: uuid
          title: Document Id
        document_type:
          $ref: '#/components/schemas/DocumentType'
        expires_at:
          type: string
          format: date-time
          title: Expires At
        recipients:
          items:
            $ref: '#/components/schemas/RecipientResponse'
          type: array
          title: Recipients
        created_at:
          type: string
          format: date-time
          title: Created At
        progress:
          anyOf:
          - $ref: '#/components/schemas/SessionProgress'
          - type: 'null'
        void_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Void Reason
        voided_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Voided At
        document_name:
          type: string
          title: Document Name
        documents:
          items:
            $ref: '#/components/schemas/EnvelopeDocumentOut'
          type: array
          title: Documents
          default: []
        activity:
          items:
            $ref: '#/components/schemas/EnvelopeActivityEvent'
          type: array
          title: Activity
          default: []
      type: object
      required:
      - session_id
      - status
      - document_id
      - document_type
      - expires_at
      - recipients
      - created_at
      - document_name
      title: SessionResponse
    SessionVoidRequest:
      properties:
        reason:
          anyOf:
          - type: string
            maxLength: 1000
          - type: 'null'
          title: Reason
      type: object
      title: SessionVoidRequest
    ChangeRequestOut:
      properties:
        reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason
        comments:
          items:
            $ref: '#/components/schemas/ChangeRequestCommentOut'
          type: array
          title: Comments
        at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: At
      type: object
      required:
      - comments
      title: ChangeRequestOut
    SessionVoidResponse:
      properties:
        session_id:
          type: string
          format: uuid
          title: Session Id
        document_id:
          type: string
          format: uuid
          title: Document Id
        status:
          type: string
          title: Status
        voided_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Voided At
        reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason
        recipients_to_notify:
          type: integer
          title: Recipients To Notify
        credit_refunded:
          type: boolean
          title: Credit Refunded
        credit_refund_skipped:
          anyOf:
          - type: string
          - type: 'null'
          title: Credit Refund Skipped
      type: object
      required:
      - session_id
      - document_id
      - status
      - voided_at
      - reason
      - recipients_to_notify
      - credit_refunded
      title: SessionVoidResponse
    DocumentType:
      type: string
      enum:
      - template
      - one_off
      title: DocumentType
    CommentTextRequest:
      properties:
        text:
          type: string
          maxLength: 1000
          minLength: 1
          title: Text
      type: object
      required:
      - text
      title: CommentTextRequest
    RecipientRemindResponse:
      properties:
        session_id:
          type: string
          format: uuid
          title: Session Id
        recipient_id:
          type: string
          format: uuid
          title: Recipient Id
        email:
          type: string
          title: Email
        reminder_count:
          type: integer
          title: Reminder Count
        reminder_last_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Reminder Last At
        sent:
          type: boolean
          title: Sent
      type: object
      required:
      - session_id
      - recipient_id
      - email
      - reminder_count
      - sent
      title: RecipientRemindResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer