Scrive Documents API

The Documents API from Scrive — 13 operation(s) for documents.

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).
Business capability
Qualified Electronic Signatures & Trust Services AE-160.80

Operations 13

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/new Create a new e-sign document · Create a new document #
Ask an LLM
“How do I create a new e-sign document from a file?”
“Can I save a document without starting it right away?”
Tell an agent
Create a new document from file {file}.
Create a new e-sign document and save it as {saved}.
POST /documents/{document_id}/update Update an existing e-sign document · Update a document #
Ask an LLM
“Can I change the text or layout of a document after creating it?”
“What can I update on an existing e-sign document?”
Tell an agent
Update document {document_id} with {document}.
Edit the existing e-sign document {document_id}.
POST /documents/{document_id}/setfile Set the main file of an e-sign document · Set the main file of a document #
Ask an LLM
“How do I replace the main file of an e-sign document?”
“Can I upload a new PDF as the primary document?”
Tell an agent
Set the main file of document {document_id} to {file}.
Replace the primary document on {document_id}.
POST /documents/{document_id}/appendfile Append a PDF to an e-sign document · Append a PDF to a document #
Ask an LLM
“Can I add another page to an e-sign document after it's created?”
“How do I append a PDF to an existing document?”
Tell an agent
Append a PDF to document {document_id}.
Add another page to e-sign document {document_id}.
POST /documents/{document_id}/start Start the signing process · Start the signing process #
Ask an LLM
“How do I kick off the signing process for a document?”
“What happens when I start a document?”
Tell an agent
Start the signing process for document {document_id}.
Begin signing on e-sign document {document_id}.
GET /documents/{document_id}/get Retrieve an e-sign document · Retrieve a document #
Ask an LLM
“How do I view the full e-sign document?”
“What does a specific document contain?”
Tell an agent
Retrieve e-sign document {document_id}.
Show the full document {document_id}.
GET /documents/{short_document_id}/getbyshortid Retrieve an e-sign document by short ID · Retrieve a document by short ID #
Ask an LLM
“Can I find a document using its short ID?”
“How do I open a document from a short link?”
Tell an agent
Retrieve document {short_document_id} by short ID.
Open e-sign document {short_document_id} from its short link.
GET /documents/list List e-sign documents · List documents #
Ask an LLM
“Which e-sign documents do I have?”
“Can I filter my documents by status?”
Tell an agent
List my e-sign documents.
List documents matching {filter}.
GET /documents/{document_id}/canbestarted Check if a document is ready to start · Validate a document is ready to start #
Ask an LLM
“Is my document ready to start the signing process?”
“What checks are needed before I start a document?”
Tell an agent
Check whether document {document_id} can be started.
Validate e-sign document {document_id} is ready to start.
POST /documents/{document_id}/prolong Extend a document's expiry · Extend document expiry #
Ask an LLM
“Can I extend the expiry of a document?”
“How do I keep a document open past its expiry?”
Tell an agent
Extend the expiry of document {document_id}.
Prolong e-sign document {document_id}.
POST /documents/{document_id}/cancel Cancel a pending e-sign document · Cancel a pending document #
Ask an LLM
“How do I cancel a document that hasn't been signed yet?”
“Can I stop a pending e-sign document?”
Tell an agent destructive · confirm first
Cancel pending document {document_id}.
Stop the signing process for e-sign document {document_id}.
POST /documents/{document_id}/trash Move an e-sign document to trash · Move a document to trash #
Ask an LLM
“Can I move a document to the trash instead of deleting it?”
“What happens to a document I trash?”
Tell an agent destructive · confirm first
Move document {document_id} to trash.
Trash e-sign document {document_id}.
POST /documents/{document_id}/delete Permanently delete an e-sign document · Delete a document #
Ask an LLM
“How do I permanently delete an e-sign document?”
“Can I remove a document from my account for good?”
Tell an agent destructive · confirm first
Permanently delete document {document_id}.
Remove e-sign document {document_id} from my account.

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-documents-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-documents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Scrive Document Documents 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: Documents
paths:
  /documents/new:
    post:
      tags:
      - Documents
      operationId: newDocument
      summary: Create a new document
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                saved:
                  type: boolean
      responses:
        '201':
          description: Created document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
  /documents/{document_id}/update:
    post:
      tags:
      - Documents
      operationId: updateDocument
      summary: Update a document
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                document:
                  type: string
                  description: JSON document definition.
      responses:
        '200':
          description: Updated document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
  /documents/{document_id}/setfile:
    post:
      tags:
      - Documents
      operationId: setFile
      summary: Set the main file of a document
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
      responses:
        '200':
          description: File set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
  /documents/{document_id}/appendfile:
    post:
      tags:
      - Documents
      operationId: appendFile
      summary: Append a PDF to a document
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: File appended.
  /documents/{document_id}/start:
    post:
      tags:
      - Documents
      operationId: startDocument
      summary: Start the signing process
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Signing process started; document is pending.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
  /documents/{document_id}/get:
    get:
      tags:
      - Documents
      operationId: getDocument
      summary: Retrieve a document
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
  /documents/{short_document_id}/getbyshortid:
    get:
      tags:
      - Documents
      operationId: getByShortId
      summary: Retrieve a document by short ID
      parameters:
      - name: short_document_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document'
  /documents/list:
    get:
      tags:
      - Documents
      operationId: listDocuments
      summary: List documents
      parameters:
      - name: filter
        in: query
        schema:
          type: string
        description: JSON-encoded filter.
      - name: sorting
        in: query
        schema:
          type: string
      - name: offset
        in: query
        schema:
          type: integer
      - name: max
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: A list of documents.
          content:
            application/json:
              schema:
                type: object
                properties:
                  total_matching:
                    type: integer
                  documents:
                    type: array
                    items:
                      $ref: '#/components/schemas/Document'
  /documents/{document_id}/canbestarted:
    get:
      tags:
      - Documents
      operationId: canBeStarted
      summary: Validate a document is ready to start
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Readiness result.
  /documents/{document_id}/prolong:
    post:
      tags:
      - Documents
      operationId: prolong
      summary: Extend document expiry
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Expiry extended.
  /documents/{document_id}/cancel:
    post:
      tags:
      - Documents
      operationId: cancel
      summary: Cancel a pending document
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Document canceled.
  /documents/{document_id}/trash:
    post:
      tags:
      - Documents
      operationId: trash
      summary: Move a document to trash
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Document trashed.
  /documents/{document_id}/delete:
    post:
      tags:
      - Documents
      operationId: deleteDocument
      summary: Delete a document
      parameters:
      - $ref: '#/components/parameters/DocumentId'
      responses:
        '200':
          description: Document deleted.
components:
  schemas:
    Document:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        status:
          type: string
          enum:
          - preparation
          - pending
          - closed
          - canceled
          - timedout
          - rejected
          - document_error
        parties:
          type: array
          items:
            $ref: '#/components/schemas/Signatory'
        file:
          type:
          - object
          - 'null'
        api_callback_url:
          type:
          - string
          - 'null'
        ctime:
          type: string
          format: date-time
        mtime:
          type: string
          format: date-time
    Signatory:
      type: object
      properties:
        id:
          type: string
        is_author:
          type: boolean
        is_signatory:
          type: boolean
        fields:
          type: array
          items:
            type: object
        authentication_method_to_view:
          type: string
        authentication_method_to_sign:
          type: string
  parameters:
    DocumentId:
      name: document_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).