SignalWire Chunks API

Manage chunks within Datasphere documents.

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/signalwire-chunks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

signalwire-chunks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SignalWire REST Chunks API
  version: 1.0.0
  contact:
    name: SignalWire
    url: https://support.signalwire.com/portal/en/newticket?departmentId=1029313000000006907&layoutId=1029313000000074011
    email: support@signalwire.com
  license:
    name: MIT
    url: https://github.com/signalwire/docs/blob/main/LICENSE
  termsOfService: https://signalwire.com/legal/signalwire-cloud-agreement
  description: Manage chunks within Datasphere documents.
servers:
- url: https://{space_name}.signalwire.com
  description: SignalWire API
  variables:
    space_name:
      default: '{Your_Space_Name}'
      description: Your SignalWire Space name
security:
- SignalWireBasicAuth: []
tags:
- name: Chunks
  description: Manage chunks within Datasphere documents.
  externalDocs:
    url: https://signalwire.com/docs/apis
    description: Developer documentation on SignalWire REST APIs
paths:
  /api/datasphere/documents/{documentId}/chunks:
    get:
      operationId: list_document_chunks
      summary: List chunks
      description: 'A list of chunks for a Datasphere Document.


        #### Permissions


        The API token used to authenticate must have the following scope(s) enabled to make a successful request: _DataSphere_.


        [Learn more about API scopes](/docs/platform/your-signalwire-api-space).'
      parameters:
      - $ref: '#/components/parameters/Datasphere.DocumentPathID'
      - $ref: '#/components/parameters/Datasphere.ChunkListQuery.page_number'
      - $ref: '#/components/parameters/Datasphere.ChunkListQuery.page_size'
      - $ref: '#/components/parameters/Datasphere.ChunkListQuery.page_token'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Datasphere.ChunkListResponse'
        '400':
          description: The request is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode400'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode404'
        '422':
          description: The request contains invalid parameters. See errors for details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Datasphere.ListStatusCode422'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
      tags:
      - Chunks
  /api/datasphere/documents/{documentId}/chunks/{chunkId}:
    get:
      operationId: get_document_chunk
      summary: Get chunk
      description: 'Retrieves a specific chunk for a Datasphere Document by ID.


        #### Permissions


        The API token used to authenticate must have the following scope(s) enabled to make a successful request: _DataSphere_.


        [Learn more about API scopes](/docs/platform/your-signalwire-api-space).'
      parameters:
      - $ref: '#/components/parameters/Datasphere.ChunkPathID.documentId'
      - $ref: '#/components/parameters/Datasphere.ChunkPathID.chunkId'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Datasphere.ChunkResponse'
        '400':
          description: The request is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode400'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode404'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
      tags:
      - Chunks
    delete:
      operationId: delete_document_chunk
      summary: Delete chunk
      description: 'Deletes a specific chunk for a Datasphere Document by ID.


        #### Permissions


        The API token used to authenticate must have the following scope(s) enabled to make a successful request: _DataSphere_.


        [Learn more about API scopes](/docs/platform/your-signalwire-api-space).'
      parameters:
      - $ref: '#/components/parameters/Datasphere.ChunkPathID.documentId'
      - $ref: '#/components/parameters/Datasphere.ChunkPathID.chunkId'
      responses:
        '204':
          description: 'There is no content to send for this request, but the headers may be useful. '
        '400':
          description: The request is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode400'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode404'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
      tags:
      - Chunks
components:
  schemas:
    Datasphere.ChunkPaginationResponse:
      type: object
      required:
      - self
      - first
      properties:
        self:
          type: string
          format: uri
          description: Link of the current page.
          examples:
          - https://{space_name}.signalwire.com/api/datasphere/documents/{document_id}/chunks?page_number=0&page_size=50
        first:
          type: string
          format: uri
          description: Link to the first page.
          examples:
          - https://{space_name}.signalwire.com/api/datasphere/documents/{document_id}/chunks?page_number=0&page_size=50
        next:
          type: string
          format: uri
          description: Link to the next page. Only present when there are more results.
          examples:
          - https://{space_name}.signalwire.com/api/datasphere/documents/{document_id}/chunks?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca
        prev:
          type: string
          format: uri
          description: Link to the previous page. Only present when not on the first page.
          examples:
          - https://{space_name}.signalwire.com/api/datasphere/documents/{document_id}/chunks?page_number=0&page_size=50&page_token=PBbff61159-faab-48b3-959a-3021a8f5beca
      unevaluatedProperties:
        not: {}
    Datasphere.ListStatusCode422:
      type: object
      required:
      - errors
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Types.StatusCodes.RestApiErrorItem'
          description: List of validation errors.
      unevaluatedProperties:
        not: {}
      description: The request contains invalid parameters. See errors for details.
      examples:
      - statusCode: 422
        errors:
        - type: validation_error
          code: invalid_parameter
          message: Invalid page_token
          attribute: page_token
          url: https://signalwire.com/docs/apis/error-codes
    Datasphere.ChunkListResponse:
      type: object
      required:
      - data
      - links
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Datasphere.ChunkResponse'
          description: A list of chunks.
        links:
          allOf:
          - $ref: '#/components/schemas/Datasphere.ChunkPaginationResponse'
          description: Pagination links.
      unevaluatedProperties:
        not: {}
    Types.StatusCodes.StatusCode401:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - Unauthorized
      unevaluatedProperties:
        not: {}
      description: Access is unauthorized.
    uuid:
      type: string
      format: uuid
      description: Universal Unique Identifier.
    Types.StatusCodes.StatusCode404:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - Not Found
      unevaluatedProperties:
        not: {}
      description: The server cannot find the requested resource.
    Types.StatusCodes.StatusCode500:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - Internal Server Error
      unevaluatedProperties:
        not: {}
      description: An internal server error occurred.
    Datasphere.ChunkResponse:
      type: object
      required:
      - id
      - datasphere_document_id
      - project_id
      - status
      - tags
      - content
      - created_at
      - updated_at
      properties:
        id:
          allOf:
          - $ref: '#/components/schemas/uuid'
          description: Unique ID of the chunk.
          examples:
          - acaa5c49-be5e-4477-bce0-48f4b23b7720
        datasphere_document_id:
          allOf:
          - $ref: '#/components/schemas/uuid'
          description: Unique ID of the chunk's datasphere document.
          examples:
          - acaa5c49-be5e-4477-bce0-48f4b23b7720
        project_id:
          allOf:
          - $ref: '#/components/schemas/uuid'
          description: Unique ID of the project.
          examples:
          - d369a402-7b43-4512-8735-9d5e1f387814
        status:
          allOf:
          - $ref: '#/components/schemas/Datasphere.ChunkStatus'
          description: Status of the chunk.
          examples:
          - completed
        tags:
          type: array
          items:
            type: string
          description: The tags of the document associated with the chunk.
          examples:
          - - sports
            - football
            - game
        content:
          type: string
          description: Content of the chunk.
          examples:
          - This is the content from the original document that was chunked.
        created_at:
          type: string
          format: date-time
          description: Chunk Creation Date.
          examples:
          - 2024-05-06T12:20-12Z
        updated_at:
          type: string
          format: date-time
          description: Chunk Update Date.
          examples:
          - 2024-05-06T12:20-12Z
      unevaluatedProperties:
        not: {}
    Datasphere.ChunkStatus:
      type: string
      enum:
      - submitted
      - in_progress
      - completed
      - failed
      description: The current Status of the Chunk.
    Types.StatusCodes.RestApiErrorItem:
      type: object
      required:
      - type
      - code
      - message
      - url
      properties:
        type:
          type: string
          description: The category of error.
          examples:
          - validation_error
        code:
          type: string
          description: A specific error code.
          examples:
          - invalid_parameter
        message:
          type: string
          description: A description of what caused the error.
          examples:
          - Name must be present
        attribute:
          anyOf:
          - type: string
          - type: 'null'
          description: The request parameter that caused the error, if applicable.
          examples:
          - name
        url:
          type: string
          description: A link to documentation about this error.
          examples:
          - https://signalwire.com/docs/apis/error-codes
      unevaluatedProperties:
        not: {}
      description: Details about a specific error.
    Types.StatusCodes.StatusCode400:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - Bad Request
      unevaluatedProperties:
        not: {}
      description: The request is invalid.
  parameters:
    Datasphere.ChunkListQuery.page_number:
      name: page_number
      in: query
      required: false
      description: The page number to retrieve (0-indexed).
      schema:
        type: integer
        format: int32
        minimum: 0
        default: 0
      explode: false
    Datasphere.ChunkPathID.chunkId:
      name: chunkId
      in: path
      required: true
      description: Unique ID of a Chunk.
      schema:
        $ref: '#/components/schemas/uuid'
    Datasphere.ChunkPathID.documentId:
      name: documentId
      in: path
      required: true
      description: Unique ID of the parent Document.
      schema:
        $ref: '#/components/schemas/uuid'
    Datasphere.ChunkListQuery.page_size:
      name: page_size
      in: query
      required: false
      description: Specify the number of results to return on a single page. The default page size is `50` and the maximum is `1000`.
      schema:
        type: integer
        format: int32
        minimum: 1
        maximum: 1000
        default: 50
      explode: false
    Datasphere.ChunkListQuery.page_token:
      name: page_token
      in: query
      required: false
      description: Token for cursor-based pagination. Required when `page_number` > 0.
      schema:
        type: string
      explode: false
    Datasphere.DocumentPathID:
      name: documentId
      in: path
      required: true
      description: Unique ID of the Document.
      schema:
        $ref: '#/components/schemas/uuid'
  securitySchemes:
    SignalWireBasicAuth:
      type: http
      scheme: Basic
      description: 'SignalWire Basic Authentication using Project ID and API Token.


        The client sends HTTP requests with the Authorization header containing

        the word Basic followed by a space and a base64-encoded string of project_id:token.

        The project ID will be used as the username and the API token as the password.


        Example:

        ```

        Authorization: Basic base64(project_id:token)

        ```'
      x-fern-basic:
        username:
          name: project_id
          env: SIGNALWIRE_PROJECT_ID
        password:
          name: api_token
          env: SIGNALWIRE_API_TOKEN
    SignalWireBearerAuth:
      type: http
      scheme: Bearer
      description: 'SignalWire Bearer Token Authentication for subscriber endpoints.

        The client sends HTTP requests with the Authorization header containing

        the word Bearer followed by a space and the subscriber token.


        Example:

        ```

        Authorization: Bearer <subscriber_token>

        ```'