ClickSend Account API

Account details, usage, and balance.

OpenAPI Specification

clicksend-account-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: ClickSend v3 Account API
  description: Representative OpenAPI 3.x description of the ClickSend v3 REST API, a single cloud communications API for SMS, MMS, voice / text-to-speech, transactional email, and physical post (letters and postcards), plus contacts and lists, delivery receipts, inbound handling, and account/balance. All requests use HTTP Basic authentication with your ClickSend username and API key. This document models a representative subset of the documented endpoints; see the official reference for the complete surface.
  termsOfService: https://www.clicksend.com/au/legal/terms-of-service/
  contact:
    name: ClickSend Support
    email: support@clicksend.com
    url: https://developers.clicksend.com/
  version: '3.1'
servers:
- url: https://rest.clicksend.com/v3
  description: ClickSend v3 production API
security:
- basicAuth: []
tags:
- name: Account
  description: Account details, usage, and balance.
paths:
  /account:
    get:
      tags:
      - Account
      operationId: accountGet
      summary: Get account details, including the current credit balance.
      responses:
        '200':
          description: Account details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
  /account/usage/{year}/{month}/subaccount:
    get:
      tags:
      - Account
      operationId: accountUsageBySubaccountGet
      summary: Get account usage broken down by subaccount for a given month.
      parameters:
      - name: year
        in: path
        required: true
        schema:
          type: integer
      - name: month
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Usage by subaccount.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
  /subaccounts:
    get:
      tags:
      - Account
      operationId: subaccountsGet
      summary: Get a paginated list of subaccounts.
      parameters:
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/limit'
      responses:
        '200':
          description: A paginated list of subaccounts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
components:
  parameters:
    limit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        default: 10
      description: Number of results per page.
    page:
      name: page
      in: query
      required: false
      schema:
        type: integer
        default: 1
      description: Page number for paginated results.
  schemas:
    ApiResponse:
      type: object
      properties:
        http_code:
          type: integer
          example: 200
        response_code:
          type: string
          example: SUCCESS
        response_msg:
          type: string
        data:
          type: object
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic authentication using your ClickSend username and API key. The username is your ClickSend account username; the password is your API key from the ClickSend dashboard.