Deeply API Documentation main logoDeeply API Documentation main logo textDeeply API Documentation main logo text
User GuideServer API Reference
Search...
k
LanguageENKO

© 2026 Deeply Inc.

Deeply Logo Icon

Deeply API Documentation

    Release Notes

    Quick Start

    API Quick Start Guide
    Authorization
    Rate Limit

    Architecture

    Overall Architecture
    Edge Server System

    Events

    Events
    Event Categories
    List Events
    GET
    Get An Event
    GET

    Composite Events

    Composite Events
    List Composite Events
    GET
    Get A Composite Event
    GET
    Listen Live Composite Events
    WebSocket

    Live Events

    Live Events
    Listen Live Events
    WebSocket

    Edges

    Edge Server
    List Edge Servers
    GET
    Get An Edge Server
    GET
    Update Edge Server
    PATCH

    Microphones

    Mic Device
    List Mic Devices
    GET
    Get A Mic Device
    GET
    Update Mic Device
    PATCH

    Auth

    Issue Token
    POST
    Reissue Token
    GET
    1. Reference
    2. API Quick Start Guide
    3. Authorization

    Authorization

    Learn the roles of API account credentials, access tokens, and refresh tokens, how to send them, and how to interpret auth errors.

    Last updated: November 12, 2026

    Changed in v2026.02.2

    Deeply API uses API account credentials, an Access Token, and a Refresh Token. Those credentials serve different purposes, so using the right one matters.

    Credential Roles

    • API account credentials: username and password used only with Issue Token
    • Access Token: Bearer token used for normal API requests and WebSocket connections
    • Refresh Token: token used only with Reissue Token

    Do not send the API account credentials or the refresh token to general endpoints. Use the access token instead.

    Getting API Account Credentials

    API account credentials are not issued from the dashboard. Request them from contact@deeplyinc.com, and Deeply will send them to you by email. Store them as a secret in your integration, and do not share them in source code or chat messages.

    Token Lifecycle

    1. Call Issue Token with your username and password to receive an access_token and a refresh_token.
    2. Send the access_token in the Authorization header of normal API requests and WebSocket connections.
    3. When the access token expires (after expires_in seconds, 3600 by default), call Reissue Token with Authorization: Bearer YOUR_REFRESH_TOKEN, and replace both stored tokens with the new values.
    4. When the refresh token expires (30 days by default), call Issue Token again.

    Using The Access Token

    Include your access token in the Authorization header of all normal API requests using the Bearer token format:

    1
    Authorization: Bearer YOUR_ACCESS_TOKEN

    Example Request

    1
    curl -X GET "http://{{EDGE_IP}}:8100/api/v1/events" -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

    This page uses the local default host shown in Getting Started. If you want to validate the same request against the public HTTPS environment, replace the host with https://openapi.deeplyinc.com.

    When You Need To Issue An Access Token

    If you do not have a token yet, call Issue Token with your API account credentials. If the access token has expired, call Reissue Token with Authorization: Bearer YOUR_REFRESH_TOKEN.

    Error Responses

    If authorization fails, you'll receive one of these responses:

    • 401: Unauthorized - Expired Token
      • You will get this response when your access token is expired, or when the session it was issued for has ended, even before the token's expiry time. Please reissue a new token to renew your session.
    • 401: Unauthorized - Invalid Key
      • You will get this response when the access token is invalid, or when the account has been deactivated. Please check your token and try again.
    • 403: Forbidden - No Key
      • You will get this response when the request does not contain an access token. Please provide a valid access token to continue.

    1
    2
    3
    4
    5
    {
      "detail": {
        "message": "Authentication token expired. Please reissue a new token to renew your session."
      }
    }

    Request Sample With Access Token

    1
    2
    3
    4
    5
    6
    7
    8
    const response = await fetch('http://{{EDGE_IP}}:8100/api/v1/events', {
      method: 'GET',
      headers: {
        "Authorization": "Bearer YOUR_ACCESS_TOKEN"
      }
    });
    
    const data = await response.json();
    API Quick Start Guide
    Rate Limit
    Credential RolesGetting API Account CredentialsToken LifecycleUsing The Access TokenExample RequestWhen You Need To Issue An Access TokenError ResponsesRequest Sample With Access Token