NiCE Attachment API

: Manage Attachment

GitHub OpenAPI

Operations 3

POST /attachments/temporary Upload base64 encoded file #
GET /attachments/{attachmentId}/download Download attachment #
GET /attachments/download Downloads attachments as a single ZIP file #

Specifications

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/nice:nice-attachment-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

nice-attachment-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nice Attachment API
  version: v1
  description: 'Operations tagged Attachment across 2 of this provider''s published API definitions: nice-digital-attachment.json, nice-digital-attachment-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Attachment
  description: ': Manage Attachment'
paths:
  /attachments/temporary:
    post:
      tags:
      - Attachment
      summary: Upload base64 encoded file
      description: Upload base64 encoded file to temporary storage so it can be used in Create Message API
      operationId: uploadTemporaryFile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - content
              - mimeType
              properties:
                content:
                  type: string
                  description: Base 64 encoded content of uploaded file (size limit is 40MB)
                mimeType:
                  type: string
                  description: MIME type of uploaded file
                  pattern: ^\w+/[-+.\w]+$
                secure:
                  type: integer
                  description: Set to 1 for secure upload, 0 otherwise
                  enum:
                  - 0
                  - 1
            examples:
              Values:
                value:
                  content: w_Pn7nK2H2jibU8YBzMCE3GVuQrEzEcmmDvlv4NaUacookHk7ebDl3iTnFe_hU_hnmK8iXdYwS44CSG/nH7nQ.DCVCskmuUN8I-b81MiYDu2Q+sdIMzx+XzyNqfqwR_D+R48x
                  mimeType: application/octet-stream
      responses:
        '200':
          description: File uploaded successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: ID of temporary attachment
                  url:
                    type: string
                    format: uri
                  expireAt:
                    type: string
                    format: date-time
                    example: '2020-10-02T15:55:00+02:00'
        '400':
          description: Something went wrong
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorCollection'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorCollection'
  /attachments/{attachmentId}/download:
    get:
      tags:
      - Attachment
      summary: Download attachment
      description: Download a file attachment by its unique identifier. Download with includeTemporary parameter expect upload have been done over /dfo/3.0/attachments/temporary with parameter secure=1
      operationId: downloadAttachment
      parameters:
      - name: attachmentId
        in: path
        required: true
        schema:
          type: string
        description: Unique ID of the attachment
      - name: includeTemporary
        in: query
        required: false
        schema:
          type: integer
          enum:
          - 0
          - 1
        description: 'Optional. Set to 1 to include temporary attachments, 0 to exclude (default: 0)'
      responses:
        '200':
          description: Attachment file downloaded
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
            application/pdf:
              schema:
                type: string
                format: binary
            image/*:
              schema:
                type: string
                format: binary
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorCollection'
        '404':
          description: Attachment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorCollection'
  /attachments/download:
    get:
      tags:
      - Attachment
      summary: Downloads attachments as a single ZIP file
      operationId: downloadAttachmentsZip
      parameters:
      - name: attachmentId[]
        in: query
        schema:
          type: array
          items:
            type: string
            format: uuid
          minItems: 1
          uniqueItems: true
        description: Ids of requested Attachments
        examples:
          oneId:
            summary: Example of a single ID
            value:
            - 681ce3ab-0ef3-4d45-a4c6-dedeec8901ff
          multipleIds:
            summary: Example of multiple IDs
            value:
            - 681ce3ab-0ef3-4d45-a4c6-dedeec8901ff
            - 201ce3ab-0ef3-4d45-a4c6-dedeec8901ee
        required: true
      responses:
        '200':
          description: Output contains ZIP binary of requested attachments
        '400':
          description: Some of the attachment IDs cannot be downloaded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorCollection'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorCollection'
components:
  schemas:
    ApiErrorCollection:
      title: Collection of API errors
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ApiError'
        uid:
          type: string
          description: UID for debug purposes
      required:
      - errors
    ApiError:
      title: API error
      type: object
      required:
      - message
      properties:
        field:
          type: string
          description: Name of the field containing error
        message:
          type: string
          description: Error description
        parameters:
          type: object
          description: Free dictionary of additional data describing the error state
        errorCode:
          type: string
          description: Specific code of the type of error
x-refined-from:
- nice-digital-attachment.json
- nice-digital-attachment-openapi.yml