Wavix Wavix Embeddable API

WebRTC embeddable widget

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).

Operations 5

POST /v2/webrtc/tokens Create a widget token #
GET /v2/webrtc/tokens List widget tokens #
GET /v2/webrtc/tokens/{id} Retrieve a widget token #
PUT /v2/webrtc/tokens/{id} Update a widget token #
DELETE /v2/webrtc/tokens/{id} Delete a widget token #

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/wavix-com:wavix-com-wavix-embeddable-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

wavix-com-wavix-embeddable-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Wavix Embeddable API
  description: Wavix provides robust APIs that let you integrate voice and text messaging features directly into your app. Send text, place calls, and access detailed reports programmatically.
  termsOfService: https://wavix.com/terms-and-conditions
  license:
    name: MIT
    identifier: MIT
  contact:
    name: Wavix
    url: https://wavix.com
    email: support@wavix.com
  version: 3.2.0
servers:
- url: https://api.wavix.com
  description: https://api.wavix.com
  variables: {}
security:
- bearerAuth: []
tags:
- name: Wavix Embeddable
  description: WebRTC embeddable widget
paths:
  /v2/webrtc/tokens:
    post:
      tags:
      - Wavix Embeddable
      summary: Create a widget token
      description: Creates a Wavix Embeddable widget token that authenticates a browser-based softphone session. The token expires after `ttl` seconds.
      operationId: webrtc_tokens_create
      security:
      - bearerAuth:
        - embeddable:write
      x-fern-sdk-group-name:
      - webrtc
      - tokens
      x-fern-sdk-method-name: create
      x-mcp:
        readOnly: false
        destructive: false
        openWorld: false
        expose: true
        toolset: voice_config
      parameters: []
      requestBody:
        description: Attributes for the new widget token.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebRTCTokenCreateRequest'
            example:
              sip_trunk: my-sip-trunk
              ttl: 3600
              payload:
                user_id: '42'
        required: true
      responses:
        '201':
          description: Returns the created widget token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebRTCTokenResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
                    uuid: uuid
                    sip_trunk: sip trunk
                    payload: {}
                    ttl: 123
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
    get:
      tags:
      - Wavix Embeddable
      summary: List widget tokens
      description: Returns a paginated list of Wavix Embeddable widget tokens for the authenticated account.
      operationId: webrtc_tokens_list
      security:
      - bearerAuth:
        - embeddable:read
      x-fern-sdk-group-name:
      - webrtc
      - tokens
      x-fern-sdk-method-name: list
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: voice_config
      parameters:
      - name: page
        in: query
        description: Page number to retrieve. Default `1`.
        style: form
        schema:
          type: integer
          format: int32
      - name: per_page
        in: query
        description: Number of records to return per page. Default `25`.
        style: form
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Returns a paginated list of widget tokens.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebRTCTokensListResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    items:
                    - uuid: 550e8400-e29b-41d4-a716-446655440000
                      sip_trunk: my-sip-trunk
                      payload: {}
                      ttl: 3600
                    pagination:
                      current_page: 2
                      per_page: 25
                      total: 101
                      total_pages: 5
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
      deprecated: false
  /v2/webrtc/tokens/{id}:
    get:
      tags:
      - Wavix Embeddable
      summary: Retrieve a widget token
      description: Returns the Wavix Embeddable widget token identified by `id`.
      operationId: webrtc_tokens_get
      security:
      - bearerAuth:
        - embeddable:read
      x-fern-sdk-group-name:
      - webrtc
      - tokens
      x-fern-sdk-method-name: get
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: voice_config
      parameters:
      - name: id
        in: path
        description: The UUID of the widget token to retrieve.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Returns the widget token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebRTCToken'
              examples:
                success:
                  summary: Successful response
                  value:
                    uuid: 550e8400-e29b-41d4-a716-446655440000
                    sip_trunk: my-sip-trunk
                    payload: {}
                    ttl: 3600
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
    put:
      tags:
      - Wavix Embeddable
      summary: Update a widget token
      description: Updates the `payload` carried by the Wavix Embeddable widget token identified by `id`.
      operationId: webrtc_tokens_update
      security:
      - bearerAuth:
        - embeddable:write
      x-fern-sdk-group-name:
      - webrtc
      - tokens
      x-fern-sdk-method-name: update
      x-mcp:
        readOnly: false
        destructive: true
        openWorld: false
        expose: true
        toolset: voice_config
      parameters:
      - name: id
        in: path
        description: The UUID of the widget token to update.
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: Fields to update on the widget token. Only included fields are changed.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebRTCTokenUpdateRequest'
        required: true
      responses:
        '200':
          description: Returns the updated widget token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebRTCToken'
              examples:
                success:
                  summary: Successful response
                  value:
                    uuid: 550e8400-e29b-41d4-a716-446655440000
                    sip_trunk: my-sip-trunk
                    payload: {}
                    ttl: 3600
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
    delete:
      tags:
      - Wavix Embeddable
      summary: Delete a widget token
      description: Deletes the Wavix Embeddable widget token identified by `id`. The token can no longer authenticate widget sessions, and any active session using it ends.
      operationId: webrtc_tokens_delete
      security:
      - bearerAuth:
        - embeddable:write
      x-fern-sdk-group-name:
      - webrtc
      - tokens
      x-fern-sdk-method-name: delete
      x-mcp:
        readOnly: false
        destructive: true
        openWorld: false
        expose: true
        toolset: voice_config
      parameters:
      - name: id
        in: path
        description: The UUID of the widget token to delete.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Returns a success confirmation. The widget token is deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
components:
  responses:
    BadRequestErrorResponse:
      description: Request failed. Missing or invalid parameter <param_name>
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
    UnauthorizedErrorResponse:
      description: Unauthorized
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedErrorResponse'
    ForbiddenErrorResponse:
      description: Request failed. The feature is disabled for your account.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenErrorResponse'
    NotFoundErrorResponse:
      description: Request failed. An object with the specified ID is not found.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFoundErrorResponse'
  schemas:
    WebRTCToken:
      title: WebRTCToken
      description: Represents a WebRTC token that authorizes the Wavix embeddable widget to register against a SIP trunk.
      type: object
      additionalProperties: false
      required:
      - uuid
      - sip_trunk
      properties:
        uuid:
          type: string
          description: Unique identifier of the WebRTC token.
          example: 550e8400-e29b-41d4-a716-446655440000
        sip_trunk:
          type: string
          description: Name of the SIP trunk the token authenticates against.
          example: my-sip-trunk
        payload:
          type:
          - object
          - 'null'
          description: Arbitrary client-defined data associated with the token.
          example: {}
        ttl:
          type:
          - integer
          - 'null'
          minimum: 1
          description: Time to live, in seconds. `null` means no expiration.
          example: 3600
    WebRTCTokenCreateRequest:
      title: WebRTCTokenCreateRequest
      type: object
      additionalProperties: false
      required:
      - sip_trunk
      properties:
        sip_trunk:
          type: string
          description: Name of the SIP trunk the token authenticates against.
          example: my-sip-trunk
        payload:
          type:
          - object
          - 'null'
          description: Arbitrary client-defined data to associate with the token.
          example: {}
        ttl:
          type:
          - integer
          - 'null'
          minimum: 1
          default: 3600
          description: Time to live in seconds. Default `3600`; `null` means no expiration.
          example: 3600
    NotFoundErrorResponse:
      title: NotFoundErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: Indicates whether the request was successful. Always `false` for this error.
          example: false
        message:
          type: string
          description: Human-readable description stating that no resource matches the given ID.
          example: Record not found
    ValidationErrorResponse:
      title: ValidationErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: Indicates whether the request was successful. Always `false` for this error.
          example: false
        message:
          type: string
          description: Human-readable description naming the missing or invalid request parameter.
          example: Missing or invalid parameter <param_name>
    SuccessResponse:
      title: SuccessResponse
      required:
      - success
      type: object
      properties:
        success:
          type: boolean
          description: Indicates whether the request was successful.
          example: true
    UnauthorizedErrorResponse:
      title: UnauthorizedErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: Indicates whether the request was successful. Always `false` for this error.
          example: false
        error:
          type: boolean
          description: Indicates that the response represents an error. Always `true` for this error.
          example: true
        message:
          type: string
          description: Human-readable description stating that authentication is missing or invalid.
          example: Unauthorized
    WebRTCTokensListResponse:
      type: object
      description: Paginated list of WebRTC tokens.
      properties:
        items:
          type: array
          description: WebRTC tokens on the current page.
          items:
            $ref: '#/components/schemas/WebRTCToken'
        pagination:
          $ref: '#/components/schemas/Pagination'
    Pagination:
      title: Pagination
      required:
      - current_page
      - per_page
      - total
      - total_pages
      type: object
      additionalProperties: false
      properties:
        current_page:
          type: integer
          description: Current page number.
          format: int32
          example: 2
        per_page:
          type: integer
          description: Number of records per page.
          format: int32
          example: 25
        total:
          type: integer
          description: Total number of records.
          format: int32
          example: 101
        total_pages:
          type: integer
          description: Total number of pages.
          format: int32
          example: 5
    ForbiddenErrorResponse:
      title: ForbiddenErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: Indicates whether the request was successful. Always `false` for this error.
          example: false
        message:
          type: string
          description: Human-readable description of why access is forbidden.
          example: The service is not provisioned for your account.
    WebRTCTokenResponse:
      title: WebRTCTokenResponse
      type: object
      additionalProperties: false
      required:
      - token
      - uuid
      - sip_trunk
      properties:
        token:
          type: string
          description: Signed JWT used by the Wavix embeddable widget to authenticate.
          example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
        uuid:
          type: string
          description: Unique identifier of the WebRTC token.
          example: 550e8400-e29b-41d4-a716-446655440000
        sip_trunk:
          type: string
          description: Name of the SIP trunk the token authenticates against.
          example: my-sip-trunk
        payload:
          type:
          - object
          - 'null'
          description: Arbitrary client-defined data associated with the token.
          example: {}
        ttl:
          type:
          - integer
          - 'null'
          description: Lifetime of the token, in seconds. `null` means the token does not expire.
          example: 3600
    WebRTCTokenUpdateRequest:
      title: WebRTCTokenUpdateRequest
      type: object
      additionalProperties: false
      required:
      - payload
      properties:
        payload:
          type: object
          description: Arbitrary client-defined data to associate with the token, replacing the existing payload.
          example: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Wavix API key. Pass as `Authorization: Bearer <api_key>`. Keys support per-resource scopes (none / read / write). See [Restricted keys and scopes](https://docs.wavix.com/api-reference/authentication#restricted-keys-and-scopes).

        '