Scrive Attachments API

The Attachments API from Scrive — 9 operation(s) for attachments.

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 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /documents/{document_id}/setattachments Attach author files to a document · Set author attachments on a document #
Ask an LLM
“How do I attach files to a document so the author can see them?”
“Can I set author attachments on a document by its ID?”
Tell an agent
Set author attachments on document {document_id}.
Attach files to the author of document {document_id}.
POST /documents/{document_id}/{signatory_id}/setfiletosignatory Attach a file to a signatory · Attach a file to a signatory #
Ask an LLM
“How do I give one signatory a file to review before signing?”
“Can I attach a file to a specific signatory on a document?”
Tell an agent
Attach a file to signatory {signatory_id} on document {document_id}.
Give signatory {signatory_id} a file on document {document_id}.
GET /documents/{document_id}/files/main/{filename} Download a document's main file · Download the main file #
Ask an LLM
“How do I download the main document file?”
“Can I fetch the main file of a document by name?”
Tell an agent
Download the main file {filename} of document {document_id}.
Get document {document_id}'s main file {filename}.
GET /documents/{document_id}/files/zip/{filename} Download all document files as a ZIP · Download all files as a ZIP #
Ask an LLM
“How do I download every file attached to a document in one ZIP?”
“Can I get a ZIP of all files for a document?”
Tell an agent
Download all files of document {document_id} as {filename}.
Get the ZIP {filename} of document {document_id}.
GET /attachments/list List reusable attachments · List reusable attachments #
Ask an LLM
“What reusable attachments have I uploaded?”
“Which attachments can I attach to documents?”
Tell an agent
List my reusable attachments.
Show every attachment I can reuse.
POST /attachments/new Create a reusable attachment · Create a reusable attachment #
Ask an LLM
“How do I upload a file so I can reuse it on many documents?”
“Can I create a reusable attachment?”
Tell an agent
Create a reusable attachment.
Upload a file to reuse across documents.
GET /attachments/{attachment_id}/download Download a reusable attachment · Download an attachment #
Ask an LLM
“How do I download an attachment I uploaded?”
“Can I fetch a reusable attachment by ID?”
Tell an agent
Download attachment {attachment_id}.
Get reusable attachment {attachment_id}.
POST /attachments/{attachment_id}/share Share or unshare a reusable attachment · Share or unshare an attachment #
Ask an LLM
“How do I share an attachment with someone?”
“Can I stop sharing a reusable attachment?”
Tell an agent
Share attachment {attachment_id}.
Unshare reusable attachment {attachment_id}.
DELETE /attachments/{attachment_id} Delete a reusable attachment · Delete an attachment #
Ask an LLM
“How do I delete an attachment I no longer need?”
“Can I remove a reusable attachment?”
Tell an agent destructive · confirm first
Delete attachment {attachment_id}.
Remove reusable attachment {attachment_id}.

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/scrive:scrive-attachments-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

scrive-attachments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Scrive Document Attachments API
  version: 2.0.0
  description: The Scrive Document API (eSign Online, Version 2) is a RESTful, JSON-over-HTTPS interface that creates, prepares, sends, and manages the full lifecycle of documents for electronic signing, with identity verification through Nordic and European e-ID methods (BankID, MitID, Freja, Smart-ID, and more).
  contact:
    name: API Evangelist
    email: kin@apievangelist.com
  license:
    name: Proprietary
    url: https://www.scrive.com/
servers:
- url: https://scrive.com/api/v2
  description: Production
- url: https://api-testbed.scrive.com/api/v2
  description: API Testbed (development)
security:
- oauth2: []
- oauth1: []
tags:
- name: Attachments
paths:
  /documents/{document_id}/setattachments:
    post:
      tags:
      - Attachments
      operationId: setAttachments
      summary: Set author attachments on a document
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Attachments set.
  /documents/{document_id}/{signatory_id}/setfiletosignatory:
    post:
      tags:
      - Attachments
      operationId: setFileToSignatory
      summary: Attach a file to a signatory
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      - $ref: '#/components/parameters/SignatoryId'
      responses:
        '200':
          description: File attached to signatory.
  /documents/{document_id}/files/main/{filename}:
    get:
      tags:
      - Attachments
      operationId: getMainFile
      summary: Download the main file
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      - name: filename
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: PDF file.
          content:
            application/pdf: {}
  /documents/{document_id}/files/zip/{filename}:
    get:
      tags:
      - Attachments
      operationId: getZip
      summary: Download all files as a ZIP
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      - name: filename
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ZIP archive.
          content:
            application/zip: {}
  /attachments/list:
    get:
      tags:
      - Attachments
      operationId: listAttachments
      summary: List reusable attachments
      responses:
        '200':
          description: A list of attachments.
  /attachments/new:
    post:
      tags:
      - Attachments
      operationId: newAttachment
      summary: Create a reusable attachment
      responses:
        '201':
          description: Attachment created.
  /attachments/{attachment_id}/download:
    get:
      tags:
      - Attachments
      operationId: downloadAttachment
      summary: Download an attachment
      parameters:
      - $ref: '#/components/parameters/AttachmentId'
      responses:
        '200':
          description: Attachment file.
  /attachments/{attachment_id}/share:
    post:
      tags:
      - Attachments
      operationId: shareAttachment
      summary: Share or unshare an attachment
      parameters:
      - $ref: '#/components/parameters/AttachmentId'
      responses:
        '200':
          description: Share state updated.
  /attachments/{attachment_id}:
    delete:
      tags:
      - Attachments
      operationId: deleteAttachment
      summary: Delete an attachment
      parameters:
      - $ref: '#/components/parameters/AttachmentId'
      responses:
        '200':
          description: Attachment deleted.
components:
  parameters:
    AttachmentId:
      name: attachment_id
      in: path
      required: true
      schema:
        type: string
    DocumentId:
      name: document_id
      in: path
      required: true
      schema:
        type: string
    SignatoryId:
      name: signatory_id
      in: path
      required: true
      schema:
        type: string
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://oauth2.scrive.com/oauth2/authorization
          tokenUrl: https://oauth2.scrive.com/oauth2/token
          scopes:
            doc:create: Create documents
            doc:check: Read documents
            doc:send: Send documents
            full: Full access
            offline_access: Refresh tokens
            openid: OpenID Connect
    oauth1:
      type: apiKey
      in: header
      name: Authorization
      description: OAuth 1.0 or personal access credentials passed in the Authorization header using PLAINTEXT signatures (oauth_consumer_key, oauth_token, oauth_signature).