Korala AI Collections API

The Collections API from Korala AI — 11 operation(s) for collections.

GitHub OpenAPI

Operations 13

POST /api/v1/collections Create a collection #
GET /api/v1/collections List collections with member counts #
GET /api/v1/collections/by-external-id Find a collection by exact external ID, including archived collections #
GET /api/v1/collections/{id} Get a collection and member counts #
PATCH /api/v1/collections/{id} Update collection metadata #
POST /api/v1/collections/{id}/archive Archive a collection without changing its contents or packets #
POST /api/v1/collections/{id}/restore Restore a collection #
GET /api/v1/collections/{id}/documents List collection documents #
GET /api/v1/collections/{id}/templates List collection templates #
POST /api/v1/collections/{id}/documents/add Add 1–100 existing documents atomically; repeated additions are harmless #
POST /api/v1/collections/{id}/documents/remove Remove document memberships atomically, preserving the documents #
POST /api/v1/collections/{id}/templates/add Add 1–100 existing templates atomically; repeated additions are harmless #
POST /api/v1/collections/{id}/templates/remove Remove template memberships atomically, preserving the templates #

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/korala-ai:korala-ai-collections-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

korala-ai-collections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Korala Public Collections API
  description: Public API for Korala document signing service
  version: 1.0.0
  contact: {}
servers:
- url: https://api.korala.ai
  description: Production
tags:
- name: Collections
paths:
  /api/v1/collections:
    post:
      operationId: CollectionsController_create_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCollectionDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionDto'
        '409':
          description: externalId is already reserved in this organization and mode, including archived collections. Retrieve it using by-external-id.
      security:
      - api-key: []
      - bearer: []
      summary: Create a collection
      tags:
      - Collections
    get:
      operationId: CollectionsController_list_v1
      parameters:
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      - name: search
        required: false
        in: query
        schema:
          maxLength: 255
          type: string
      - name: archiveStatus
        required: false
        in: query
        schema:
          default: active
          type: string
          enum:
          - active
          - archived
          - all
      - name: sortBy
        required: false
        in: query
        schema:
          $ref: '#/components/schemas/CollectionSortBy'
      - name: sortOrder
        required: false
        in: query
        schema:
          $ref: '#/components/schemas/SortOrder'
      - name: page
        required: false
        in: query
        schema:
          minimum: 1
          default: 1
          type: number
      - name: limit
        required: false
        in: query
        schema:
          minimum: 1
          maximum: 100
          default: 20
          type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedCollectionsDto'
      security:
      - api-key: []
      - bearer: []
      summary: List collections with member counts
      tags:
      - Collections
  /api/v1/collections/by-external-id:
    get:
      operationId: CollectionsController_byExternalId_v1
      parameters:
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      - name: externalId
        required: true
        in: query
        schema:
          minLength: 1
          maxLength: 255
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionDto'
      security:
      - api-key: []
      - bearer: []
      summary: Find a collection by exact external ID, including archived collections
      tags:
      - Collections
  /api/v1/collections/{id}:
    get:
      operationId: CollectionsController_get_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionDto'
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: Get a collection and member counts
      tags:
      - Collections
    patch:
      operationId: CollectionsController_update_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCollectionDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionDto'
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: Update collection metadata
      tags:
      - Collections
  /api/v1/collections/{id}/archive:
    post:
      operationId: CollectionsController_archive_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionDto'
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: Archive a collection without changing its contents or packets
      tags:
      - Collections
  /api/v1/collections/{id}/restore:
    post:
      operationId: CollectionsController_restore_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CollectionDto'
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: Restore a collection
      tags:
      - Collections
  /api/v1/collections/{id}/documents:
    get:
      operationId: CollectionsController_listDocuments_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      - name: includeCollections
        required: false
        in: query
        description: Include collectionIds for the returned page.
        schema:
          type: boolean
      - name: search
        required: false
        in: query
        description: Matches the document's name, or the name or email of anyone signing it.
        schema:
          maxLength: 255
          type: string
      - name: templateId
        required: false
        in: query
        description: Only documents created from this template.
        schema:
          format: uuid
          type: string
      - name: status
        required: false
        in: query
        schema:
          type: string
          enum:
          - draft
          - pending
          - completing
          - completed
          - failed
          - voided
          - expired
      - name: sortBy
        required: false
        in: query
        schema:
          $ref: '#/components/schemas/DocumentSortBy'
      - name: sortOrder
        required: false
        in: query
        schema:
          $ref: '#/components/schemas/SortOrder'
      - name: page
        required: false
        in: query
        description: Page number (1-based)
        schema:
          minimum: 1
          default: 1
          type: number
      - name: limit
        required: false
        in: query
        description: Number of items per page
        schema:
          minimum: 1
          maximum: 100
          default: 10
          type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedDocumentsDto'
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: List collection documents
      tags:
      - Collections
  /api/v1/collections/{id}/templates:
    get:
      operationId: CollectionsController_listTemplates_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: 'Filter by mode: true returns only sandbox (test) templates, false only live ones. Omit to return both.'
        schema:
          default: false
          type: boolean
      - name: includeCollections
        required: false
        in: query
        description: Include collectionIds for the returned page.
        schema:
          type: boolean
      - name: search
        required: false
        in: query
        description: Case-insensitive substring match against the template name and description.
        schema:
          maxLength: 255
          example: W-8BEN
          type: string
      - name: isActive
        required: false
        in: query
        schema:
          type: boolean
      - name: sortBy
        required: false
        in: query
        schema:
          $ref: '#/components/schemas/TemplateSortBy'
      - name: sortOrder
        required: false
        in: query
        schema:
          $ref: '#/components/schemas/SortOrder'
      - name: page
        required: false
        in: query
        description: Page number (1-based)
        schema:
          minimum: 1
          default: 1
          type: number
      - name: limit
        required: false
        in: query
        description: Number of items per page
        schema:
          minimum: 1
          maximum: 100
          default: 20
          type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedTemplatesDto'
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: List collection templates
      tags:
      - Collections
  /api/v1/collections/{id}/documents/add:
    post:
      operationId: CollectionsController_addDocuments_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CollectionDocumentsMutationDto'
      responses:
        '204':
          description: ''
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: Add 1–100 existing documents atomically; repeated additions are harmless
      tags:
      - Collections
  /api/v1/collections/{id}/documents/remove:
    post:
      operationId: CollectionsController_removeDocuments_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CollectionDocumentsMutationDto'
      responses:
        '204':
          description: ''
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: Remove document memberships atomically, preserving the documents
      tags:
      - Collections
  /api/v1/collections/{id}/templates/add:
    post:
      operationId: CollectionsController_addTemplates_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CollectionTemplatesMutationDto'
      responses:
        '204':
          description: ''
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: Add 1–100 existing templates atomically; repeated additions are harmless
      tags:
      - Collections
  /api/v1/collections/{id}/templates/remove:
    post:
      operationId: CollectionsController_removeTemplates_v1
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      - name: sandbox
        required: false
        in: query
        description: Dashboard mode. API keys always use their authenticated mode.
        schema:
          default: false
          type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CollectionTemplatesMutationDto'
      responses:
        '204':
          description: ''
        '400':
          description: Malformed UUID in path parameter (`id`).
      security:
      - api-key: []
      - bearer: []
      summary: Remove template memberships atomically, preserving the templates
      tags:
      - Collections
components:
  schemas:
    DocumentSortBy:
      type: string
      enum:
      - createdAt
      - name
      - status
    CreateCollectionDto:
      type: object
      properties:
        sandbox:
          type: boolean
          default: false
          description: Dashboard mode. API keys always use their authenticated mode.
        name:
          type: string
          minLength: 1
          maxLength: 255
        description:
          type:
          - string
          - 'null'
          maxLength: 2000
        externalId:
          type: string
          minLength: 1
          maxLength: 255
          description: Immutable, case-sensitive external reference, unique per organization and mode even when archived.
        metadata:
          type: object
          description: JSON object, at most 16 KiB of UTF-8 JSON.
      required:
      - name
    CollectionTemplatesMutationDto:
      type: object
      properties:
        templateIds:
          minItems: 1
          maxItems: 100
          type: array
          items:
            type: string
            format: uuid
      required:
      - templateIds
    CollectionDocumentsMutationDto:
      type: object
      properties:
        documentIds:
          minItems: 1
          maxItems: 100
          type: array
          items:
            type: string
            format: uuid
      required:
      - documentIds
    GoogleProvenanceDto:
      type: object
      properties:
        fileId:
          type: string
        name:
          type: string
        url:
          type: string
        mimeType:
          type: string
        driveVersion:
          type: string
        docsRevision:
          type: string
        tabCount:
          type: number
        skipEmptyPages:
          type: boolean
          description: Whether conversion suppresses automatic blank parity pages. Absent on older imports, which retain their original pagination.
        fetchedAt:
          type: string
        locallyReplacedAt:
          type: string
          description: First local file replacement. When present, this provenance describes the original import, not the current template file. Google variable validation no longer applies; the saved pagination policy is retained.
        sourceSha256:
          type: string
          description: SHA-256 of the stored source, after DOCX ZIP normalization.
        providerSourceSha256:
          type: string
          description: SHA-256 of the original bytes downloaded from Google.
        pdfSha256:
          type: string
        dialect:
          type: string
          enum:
          - korala-simple-v1
      required:
      - fileId
      - name
      - url
      - mimeType
      - driveVersion
      - fetchedAt
      - sourceSha256
      - pdfSha256
      - dialect
    SortOrder:
      type: string
      enum:
      - asc
      - desc
    PaginatedDocumentsDto:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/DocumentDto'
        total:
          type: number
          description: Total number of documents
        page:
          type: number
          description: Current page number
        limit:
          type: number
          description: Number of items per page
        totalPages:
          type: number
          description: Total number of pages
      required:
      - data
      - total
      - page
      - limit
      - totalPages
    PaginatedCollectionsDto:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/CollectionDto'
        total:
          type: number
        page:
          type: number
        limit:
          type: number
        totalPages:
          type: number
      required:
      - data
      - total
      - page
      - limit
      - totalPages
    PaginatedTemplatesDto:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TemplateDto'
        total:
          type: number
          description: Total number of templates
        page:
          type: number
          description: Current page number
        limit:
          type: number
          description: Number of items per page
        totalPages:
          type: number
          description: Total number of pages
      required:
      - data
      - total
      - page
      - limit
      - totalPages
    TemplateDto:
      type: object
      properties:
        collectionIds:
          description: Collection memberships; omitted on lists unless includeCollections=true.
          type: array
          items:
            type: string
            format: uuid
        markdown:
          allOf:
          - $ref: '#/components/schemas/MarkdownTemplateSourceDto'
        googleSource:
          description: Original Google import provenance, available on detail responses.
          allOf:
          - $ref: '#/components/schemas/GoogleProvenanceDto'
        id:
          type: string
        name:
          type: string
        description:
          type:
          - string
          - 'null'
        templateType:
          default: pdf
          allOf:
          - $ref: '#/components/schemas/TemplateType'
        baseFileUrl:
          type: string
        isActive:
          type: boolean
        sandbox:
          type: boolean
          description: Created with a test-mode API key (sandbox template)
        formFieldsDetected:
          type:
          - number
          - 'null'
          example: 23
          description: How many interactive form fields the base PDF ships with, counted when the upload was confirmed. 0 for a flat PDF, null when the file was never scanned.
        autoImportFormFields:
          type: boolean
          description: Whether those embedded fields were placed as template fields automatically when the upload was confirmed.
        detectedMergeFields:
          description: Auto-detected input fields from DOCX or Markdown (null for PDF templates)
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/DetectedMergeFieldDto'
        catalogFormSlug:
          type:
          - string
          - 'null'
          description: Standard Forms catalog slug this was cloned from, e.g. "irs-w9" (null for uploaded templates)
        catalogFormTitle:
          type:
          - string
          - 'null'
          description: Catalog form title at clone time, e.g. "IRS Form W-9 …"
        catalogRevision:
          type:
          - string
          - 'null'
          description: Catalog form revision at clone time, e.g. "Rev. March 2024"
        catalogVersionId:
          type:
          - string
          - 'null'
          description: ID of the catalog form version this was cloned from
        fieldCount:
          type: number
          description: Fields the template places. On template lists only.
        signerRoleCount:
          type: number
          description: Signer roles the template defines. On template lists only.
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      required:
      - id
      - name
      - templateType
      - baseFileUrl
      - isActive
      - sandbox
      - autoImportFormFields
      - createdAt
      - updatedAt
    TemplateType:
      type: string
      enum:
      - pdf
      - docx
      - markdown
    CollectionSortBy:
      type: string
      enum:
      - createdAt
      - name
    MarkdownTemplateSourceDto:
      type: object
      properties:
        source:
          type: string
        sampleData:
          type: object
          additionalProperties: true
        revision:
          type: number
        formatVersion:
          type: number
          enum:
          - 1
        pageSize:
          type: string
          enum:
          - A4
          - Letter
        pageCount:
          type: number
          description: Pages the source renders to with its sample data, as of the last save. Absent on templates saved before this was recorded.
      required:
      - source
      - sampleData
      - revision
      - formatVersion
      - pageSize
    DocumentDto:
      type: object
      properties:
        collectionIds:
          description: Collection memberships; omitted on lists unless includeCollections=true.
          type: array
          items:
            type: string
            format: uuid
        googleSource:
          description: Original Google import provenance, available on detail responses.
          allOf:
          - $ref: '#/components/schemas/GoogleProvenanceDto'
        id:
          type: string
        name:
          type: string
        status:
          allOf:
          - $ref: '#/components/schemas/DocumentStatus'
        originalFileUrl:
          type: string
        signedFileUrl:
          type:
          - string
          - 'null'
        certificateFileUrl:
          type:
          - string
          - 'null'
        expiresAt:
          format: date-time
          type:
          - string
          - 'null'
        completedAt:
          format: date-time
          type:
          - string
          - 'null'
        sandbox:
          type: boolean
          description: Whether this is a sandbox (test) document
        suppressNotifications:
          type: boolean
          description: Whether email notifications are suppressed
        formFieldsDetected:
          type:
          - number
          - 'null'
          example: 23
          description: How many interactive form fields the uploaded PDF ships with, counted when the upload was confirmed. 0 for a flat PDF, null when the file was never scanned (e.g. generated from a template).
        autoImportFormFields:
          type: boolean
          description: Whether those embedded fields are placed automatically for the first signer added to this document.
        catalogFormSlug:
          type:
          - string
          - 'null'
          description: Standard Forms catalog slug this document was generated from, e.g. "irs-w9" (null for non-catalog documents)
        catalogFormTitle:
          type:
          - string
          - 'null'
          description: Catalog form title, e.g. "IRS Form W-9 …"
        catalogRevision:
          type:
          - string
          - 'null'
          description: Catalog form revision, e.g. "Rev. March 2024"
        catalogVersionId:
          type:
          - string
          - 'null'
          description: ID of the catalog form version this document is based on
        templateVersionId:
          type:
          - string
          - 'null'
          description: Immutable approved template version used for generation.
        templateId:
          type:
          - string
          - 'null'
          format: uuid
          description: The workspace template this document was created from
        templateName:
          type:
          - string
          - 'null'
          description: That template's current name, on the document detail only (null if the template was deleted)
        signerNames:
          description: Names of the people signing, in signing order. On document lists only.
          type: array
          items:
            type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      required:
      - id
      - name
      - status
      - originalFileUrl
      - sandbox
      - suppressNotifications
      - autoImportFormFields
      - createdAt
      - updatedAt
    DetectedMergeFieldDto:
      type: object
      properties:
        name:
          type: string
          example: client_name
        occurrences:
          type: number
          example: 3
      required:
      - name
      - occurrences
    CollectionDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
        organizationId:
          type: string
          format: uuid
        sandbox:
          type: boolean
        name:
          type: string
        description:
          type:
          - string
          - 'null'
        externalId:
          type:
          - string
          - 'null'
        metadata:
          type: object
        archivedAt:
          format: date-time
          type:
          - string
          - 'null'
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        documentCount:
          type: number
        templateCount:
          type: number
        signingRequestCount:
          type: number
          description: Signing requests started from this collection.
      required:
      - id
      - organizationId
      - sandbox
      - name
      - description
      - externalId
      - metadata
      - archivedAt
      - createdAt
      - updatedAt
      - documentCount
      - templateCount
      - signingRequestCount
    DocumentStatus:
      type: string
      enum:
      - draft
      - pending
      - completing
      - completed
      - failed
      - voided
      - expired
    UpdateCollectionDto:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
        description:
          type:
          - string
          - 'null'
          maxLength: 2000
        metadata:
          type: object
          description: Replaces metadata. JSON object, at most 16 KiB of UTF-8 JSON.
    TemplateSortBy:
      type: string
      enum:
      - createdAt
      - name
      - status
  securitySchemes:
    preparation-token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: One-hour, single-template preparation session token. Not a dashboard or OAuth token.
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
    timestamp:
      type: apiKey
      in: header
      name: X-Timestamp
    signature:
      type: apiKey
      in: header
      name: X-Signature