Wavix Subaccounts API

Sub-account management

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

GET /v1/sub-organizations List sub-accounts #
POST /v1/sub-organizations Create a sub-account #
GET /v1/sub-organizations/{id} Retrieve a sub-account #
PUT /v1/sub-organizations/{id} Update a sub-account #
GET /v1/sub-organizations/{id}/billing/transactions List sub-account transactions #

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-subaccounts-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-subaccounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Wavix Sub Accounts 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: Subaccounts
  description: Sub-account management
paths:
  /v1/sub-organizations:
    get:
      tags:
      - Subaccounts
      summary: List sub-accounts
      description: Returns a paginated list of sub-accounts under the authenticated master account.
      operationId: sub_accounts_list
      security:
      - bearerAuth:
        - subaccounts:read
      x-fern-sdk-group-name:
      - subAccounts
      x-fern-sdk-method-name: list
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: account
      parameters:
      - name: status
        in: query
        description: Filters sub-accounts by status. One of `enabled` (the sub-account is active) or `disabled` (the sub-account is suspended).
        required: false
        style: form
        explode: true
        schema:
          type: string
          enum:
          - enabled
          - disabled
          example: enabled
      - name: page
        in: query
        description: Page number to retrieve. Default `1`.
        style: form
        explode: true
        schema:
          type: integer
          format: int32
      - name: per_page
        in: query
        description: Number of records to return per page. Default `25`.
        style: form
        explode: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Returns a paginated list of sub-accounts.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubAccountsListResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    sub_organizations:
                    - id: 123
                      created_at: '2023-06-15T10:30:00Z'
                      name: My sub-account
                      api_key: abc123def456
                      redacted_api_key: '...f456'
                      master_organization: 456
                      status: enabled
                      default_destinations:
                        sms_endpoint: https://examples.com/sms
                        dlr_endpoint: https://examples.com/dlr
                    pagination:
                      current_page: 2
                      per_page: 25
                      total: 123
                      total_pages: 123
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
      deprecated: false
    post:
      tags:
      - Subaccounts
      summary: Create a sub-account
      description: Creates a sub-account under the authenticated master account. Returns the sub-account with its generated `api_key`. Store the returned `api_key` securely. Later reads return `redacted_api_key`, and `api_key` on reads is deprecated.
      operationId: sub_accounts_create
      security:
      - bearerAuth:
        - subaccounts:write
      x-fern-sdk-group-name:
      - subAccounts
      x-fern-sdk-method-name: create
      x-mcp:
        readOnly: false
        destructive: true
        openWorld: true
        expose: true
        toolset: account
      parameters: []
      requestBody:
        description: Attributes for the new sub-account.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubAccountsCreateRequest'
            example:
              name: Company
              default_destinations:
                sms_endpoint: https://examples.com/sms
                dlr_endpoint: https://examples.com/dlr
        required: true
      responses:
        '200':
          description: Returns the created sub-account.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubOrganizationWithSecret'
              examples:
                success:
                  summary: Successful response
                  value:
                    id: 123
                    created_at: '2023-06-15T10:30:00Z'
                    name: My sub-account
                    api_key: abc123def456
                    redacted_api_key: '...f456'
                    master_organization: 456
                    status: enabled
                    default_destinations:
                      sms_endpoint: https://examples.com/sms
                      dlr_endpoint: https://examples.com/dlr
        '400':
          description: Returns when a required parameter is missing or invalid.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    success: false
                    message: Missing or invalid parameter <param_name>
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '422':
          $ref: '#/components/responses/ValidationErrorResponse'
      deprecated: false
  /v1/sub-organizations/{id}:
    get:
      tags:
      - Subaccounts
      summary: Retrieve a sub-account
      description: Returns the sub-account identified by `id`.
      operationId: sub_accounts_get
      security:
      - bearerAuth:
        - subaccounts:read
      x-fern-sdk-group-name:
      - subAccounts
      x-fern-sdk-method-name: get
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: account
      parameters:
      - name: id
        in: path
        description: The unique ID of the sub-account.
        required: true
        style: simple
        explode: false
        schema:
          type: integer
          format: int32
          example: 123
      responses:
        '200':
          headers: {}
          description: Returns the sub-account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubOrganizationResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    id: 123
                    created_at: '2023-06-15T10:30:00Z'
                    name: My sub-account
                    api_key: abc123def456
                    redacted_api_key: '...f456'
                    master_organization: 456
                    status: enabled
                    default_destinations:
                      sms_endpoint: https://examples.com/sms
                      dlr_endpoint: https://examples.com/dlr
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
    put:
      tags:
      - Subaccounts
      summary: Update a sub-account
      description: Updates the sub-account identified by `id`. Only the provided fields are changed.
      operationId: sub_accounts_update
      security:
      - bearerAuth:
        - subaccounts:write
      x-fern-sdk-group-name:
      - subAccounts
      x-fern-sdk-method-name: update
      x-mcp:
        readOnly: false
        destructive: true
        openWorld: true
        expose: true
        confirm: true
        toolset: account
      parameters:
      - name: id
        in: path
        description: The unique ID of the sub-account.
        required: true
        style: simple
        explode: false
        schema:
          type: integer
          format: int32
          example: 123
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubAccountsUpdateRequest'
            example:
              name: Updated Company Name
              status: enabled
              default_destinations:
                sms_endpoint: https://examples.com/sms
                dlr_endpoint: https://examples.com/dlr
        required: true
      responses:
        '200':
          description: Returns the updated sub-account.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubOrganizationResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    id: 123
                    created_at: '2023-06-15T10:30:00Z'
                    name: My sub-account
                    api_key: abc123def456
                    redacted_api_key: '...f456'
                    master_organization: 456
                    status: enabled
                    default_destinations:
                      sms_endpoint: https://examples.com/sms
                      dlr_endpoint: https://examples.com/dlr
        '400':
          $ref: '#/components/responses/ValidationErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
        '422':
          $ref: '#/components/responses/ValidationErrorResponse'
      deprecated: false
  /v1/sub-organizations/{id}/billing/transactions:
    get:
      tags:
      - Subaccounts
      summary: List sub-account transactions
      description: Returns a paginated list of billing transactions for the sub-account identified by `id`, within the requested date range.
      operationId: sub_accounts_transactions_list
      security:
      - bearerAuth:
        - subaccounts:read
      x-fern-sdk-group-name:
      - subAccounts
      - transactions
      x-fern-sdk-method-name: list
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: account
      parameters:
      - name: id
        in: path
        description: The unique ID of the sub-account.
        required: true
        style: simple
        explode: false
        schema:
          type: integer
          format: int32
          example: 123
      - name: from_date
        in: query
        required: true
        description: Start of the date range to query, in `YYYY-MM-DD` format. Inclusive.
        style: form
        explode: true
        schema:
          type: string
          format: date
          example: '2023-01-01'
      - name: to_date
        in: query
        description: End of the date range to query, in `YYYY-MM-DD` format. Inclusive.
        required: true
        style: form
        explode: true
        schema:
          type: string
          format: date
          example: '2023-12-31'
      - name: type
        in: query
        description: Filters transactions by type. Accepts a single transaction type code or an array of codes.
        required: false
        style: form
        explode: true
        schema:
          oneOf:
          - title: Single type
            type: integer
            format: int32
            example: 1
          - title: Multiple types
            type: array
            items:
              type: integer
              format: int32
            example:
            - 1
            - 2
            - 3
      - name: page
        in: query
        description: Page number to retrieve. Default `1`.
        style: form
        explode: true
        schema:
          type: integer
          format: int32
          example: 1
      - name: per_page
        in: query
        description: Number of records to return per page. Default `25`.
        style: form
        explode: true
        schema:
          type: integer
          format: int32
          default: 25
          example: 25
      responses:
        '200':
          headers: {}
          description: Returns a paginated list of sub-account transactions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubAccountsTransactionsListResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    transactions:
                    - amount: 10.5
                      balance_after: 100
                      date: '2023-06-15T10:30:00Z'
                      details: Account top-up
                      status: committed
                      type: 1
                    pagination:
                      current_page: 1
                      per_page: 25
                      total: 1
                      total_pages: 123
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
        '503':
          description: Returns when the transaction list is temporarily unavailable.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
      deprecated: false
components:
  schemas:
    SubAccountsCreateRequest:
      type: object
      additionalProperties: false
      required:
      - name
      properties:
        name:
          type: string
          description: Sub-account name.
          maxLength: 75
          example: Company name
        default_destinations:
          type: object
          additionalProperties: false
          description: Default webhook URLs for inbound messages and delivery reports.
          properties:
            sms_endpoint:
              type: string
              format: uri
              description: Inbound messages webhook URL.
              example: https://examples.com/sms
            dlr_endpoint:
              type: string
              format: uri
              description: Delivery report webhook URL.
              example: https://examples.com/dlr
    SubAccountsTransactionsListResponse:
      type: object
      additionalProperties: false
      properties:
        transactions:
          type: array
          description: Financial transactions for the subaccount.
          items:
            type: object
            additionalProperties: false
            properties:
              amount:
                type: number
                format: float
                description: Transaction amount.
                example: 10.5
              balance_after:
                type: number
                format: float
                description: Sub-account balance after the transaction.
                example: 100
              date:
                type: string
                description: Transaction date and time in ISO 8601 format.
                format: date-time
                example: '2023-06-15T10:30:00Z'
              details:
                type: string
                description: Transaction details.
                example: Account top-up
              status:
                type: string
                description: Transaction status.
                example: committed
              type:
                type: integer
                description: Transaction type.
                example: 1
        pagination:
          $ref: '#/components/schemas/Pagination'
    SubAccountsUpdateRequest:
      type: object
      additionalProperties: false
      properties:
        name:
          type: string
          description: Sub-account name.
          maxLength: 75
          example: Updated Company Name
        status:
          type: string
          description: Status of the subaccount. One of `enabled` (the subaccount is active and can be used) or `disabled` (the subaccount is suspended).
          enum:
          - enabled
          - disabled
          example: enabled
        default_destinations:
          type: object
          additionalProperties: false
          description: Default webhook URLs for inbound messages and delivery reports.
          properties:
            sms_endpoint:
              type: string
              format: uri
              description: Inbound messages webhook URL.
              example: https://examples.com/sms
            dlr_endpoint:
              type: string
              format: uri
              description: Delivery report webhook URL.
              example: https://examples.com/dlr
    SubOrganizationWithSecret:
      title: SubOrganizationWithSecret
      required:
      - id
      - created_at
      - name
      - api_key
      - redacted_api_key
      - master_organization
      - status
      - default_destinations
      type: object
      description: Sub-account details including the full API key. Returned only by the create operation.
      additionalProperties: false
      properties:
        id:
          type: integer
          format: int32
          description: Sub-account ID.
          example: 123
        created_at:
          type: string
          format: date-time
          description: Date and time the sub-account was created in ISO 8601 format.
          example: '2023-06-15T10:30:00Z'
        name:
          type: string
          description: Sub-account name.
          example: My sub-account
        api_key:
          type: string
          description: Full sub-account API key.
          example: abc123def456
        redacted_api_key:
          type:
          - string
          - 'null'
          description: Redacted sub-account API key, shown as `...` followed by the last 4 characters. Null when the sub-account has no active key.
          example: '...f456'
        master_organization:
          type: integer
          format: int32
          description: Master account ID.
          example: 456
        status:
          type: string
          description: Status of the subaccount. One of `enabled` (the subaccount is active and can be used) or `disabled` (the subaccount is suspended).
          enum:
          - enabled
          - disabled
          example: enabled
        default_destinations:
          type: object
          additionalProperties: false
          description: Default webhook URLs for inbound messages and delivery reports.
          required:
          - sms_endpoint
          - dlr_endpoint
          properties:
            sms_endpoint:
              type: string
              format: uri
              description: Inbound messages webhook URL.
              example: https://examples.com/sms
            dlr_endpoint:
              type: string
              format: uri
              description: Delivery report webhook URL.
              example: https://examples.com/dlr
      example:
        id: 123
        created_at: '2023-06-15T10:30:00Z'
        name: My sub-account
        api_key: abc123def456
        redacted_api_key: '...f456'
        master_organization: 456
        status: enabled
        default_destinations:
          sms_endpoint: https://examples.com/sms
          dlr_endpoint: https://examples.com/dlr
    SubAccountsListResponse:
      type: object
      additionalProperties: false
      properties:
        sub_organizations:
          type: array
          description: Subaccounts belonging to the authenticated account.
          items:
            $ref: '#/components/schemas/SubOrganizationResponse'
        pagination:
          $ref: '#/components/schemas/Pagination'
    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>
    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
    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
    SubOrganizationResponse:
      title: SubOrganizationResponse
      required:
      - id
      - created_at
      - name
      - api_key
      - redacted_api_key
      - master_organization
      - status
      - default_destinations
      type: object
      description: Sub-account details including API key and webhook configurations.
      additionalProperties: false
      properties:
        id:
          type: integer
          format: int32
          description: Sub-account ID.
          example: 123
        created_at:
          type: string
          format: date-time
          description: Date and time the sub-account was created in ISO 8601 format.
          example: '2023-06-15T10:30:00Z'
        name:
          type: string
          description: Sub-account name.
          example: My sub-account
        api_key:
          type: string
          deprecated: true
          description: Sub-account API key. Deprecated; use `redacted_api_key`, which shows only the last 4 characters.
          example: abc123def456
        redacted_api_key:
          type:
          - string
          - 'null'
          description: Redacted sub-account API key, shown as `...` followed by the last 4 characters. Null when the sub-account has no active key.
          example: '...f456'
        master_organization:
          type: integer
          format: int32
          description: Master account ID.
          example: 456
        status:
          type: string
          description: Status of the subaccount. One of `enabled` (the subaccount is active and can be used) or `disabled` (the subaccount is suspended).
          enum:
          - enabled
          - disabled
          example: enabled
        default_destinations:
          type: object
          additionalProperties: false
          description: Default webhook URLs for inbound messages and delivery reports.
          required:
          - sms_endpoint
          - dlr_endpoint
          properties:
            sms_endpoint:
              type: string
              format: uri
              description: Inbound messages webhook URL.
              example: https://examples.com/sms
            dlr_endpoint:
              type: string
              format: uri
              description: Delivery report webhook URL.
              example: https://examples.com/dlr
      example:
        id: 123
        created_at: '2023-06-15T10:30:00Z'
        name: My sub-account
        api_key: abc123def456
        redacted_api_key: '...f456'
        master_organization: 456
        status: enabled
        default_destinations:
          sms_endpoint: https://examples.com/sms
          dlr_endpoint: https://examples.com/dlr
    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.
    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
  responses:
    BadRequestErrorResponse:
      description: Request failed. Missing or invalid parameter <param_name>
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
    ForbiddenErrorResponse:
      description: Request failed. The feature is disabled for your account.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenErrorResponse'
    UnauthorizedErrorResponse:
      description: Unauthorized
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedErrorResponse'
    NotFoundErrorResponse:
      description: Request failed. An object with the specified ID is not found.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFoundErrorResponse'
    ValidationErrorResponse:
      description: Validation error
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
  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).

        '