Telnyx Bucket Usage API

Bucket Usage operations

Operations 2

GET /storage/buckets/{bucketName}/usage/api Get API Usage #
GET /storage/buckets/{bucketName}/usage/storage Get Bucket Usage #

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/telnyx-bucket-usage-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 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. See our Privacy Policy and Terms.

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

OpenAPI Specification

telnyx-bucket-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@telnyx.com
  description: Telnyx provides global communications and connectivity APIs for developers — including SIP trunking, programmable voice, SMS, MMS, WhatsApp Business Messaging, Call Control, Fax, Wireless (IoT & eSIM), Phone Numbers (DID provisioning & porting), Emergency Services, and Network APIs for private interconnects and edge connectivity. Build, scale, and manage voice, messaging, and data networks with Telnyx's carrier-grade global infrastructure and API-first platform.
  title: Telnyx Bucket Usage API
  version: 2.0.0
  x-endpoint-cost: light
servers:
- description: Version 2.0.0 of the Telnyx API
  url: https://api.telnyx.com/v2
security:
- bearerAuth: []
tags:
- description: Bucket Usage operations
  name: Bucket Usage
paths:
  /storage/buckets/{bucketName}/usage/api:
    get:
      deprecated: false
      description: Returns the detail on API usage on a bucket of a particular time period, group by method category.
      operationId: GetStorageAPIUsage
      parameters:
      - description: The name of the bucket
        example: ''
        in: path
        name: bucketName
        required: true
        schema:
          type: string
      - description: 'Consolidated filter parameter (deepObject style). Originally: filter[start_time], filter[end_time]'
        example:
          end_time: '2020-01-01T00:00:00.000Z'
          start_time: '2020-01-01T00:00:00.000Z'
        explode: true
        in: query
        name: filter
        required: true
        schema:
          additionalProperties: false
          properties:
            end_time:
              description: The end time of the period to filter the usage (ISO microsecond format)
              format: date-time
              type: string
            start_time:
              description: The start time of the period to filter the usage (ISO microsecond format)
              format: date-time
              type: string
          required:
          - start_time
          - end_time
          type: object
        style: deepObject
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/BucketAPIUsageResponse'
                    type: array
                type: object
          description: Bucket Usage
          headers: {}
        '401':
          description: Unauthorized
        '404':
          description: Bucket not found
        '422':
          description: Unprocessable Entity
      summary: Get API Usage
      tags:
      - Bucket Usage
      x-latency-category: responsive
  /storage/buckets/{bucketName}/usage/storage:
    get:
      deprecated: false
      description: Returns the amount of storage space and number of files a bucket takes up.
      operationId: GetBucketUsage
      parameters:
      - description: The name of the bucket
        example: ''
        in: path
        name: bucketName
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/BucketUsage'
                    type: array
                  meta:
                    $ref: '#/components/schemas/PaginationMetaSimple'
                type: object
          description: Bucket Storage Usage
          headers: {}
        '401':
          description: Unauthorized
        '404':
          description: Bucket not found
        '422':
          description: Unprocessable Entity
      summary: Get Bucket Usage
      tags:
      - Bucket Usage
      x-latency-category: responsive
components:
  schemas:
    BucketAPIUsageResponse:
      properties:
        categories:
          items:
            $ref: '#/components/schemas/BucketOps'
          type: array
        timestamp:
          description: The time the usage was recorded
          example: '2020-01-01T00:00:00Z'
          format: date-time
          type: string
        total:
          $ref: '#/components/schemas/BucketOpsTotal'
      type: object
    PaginationMetaSimple:
      properties:
        page_number:
          example: 2
          type: integer
        page_size:
          example: 25
          type: integer
        total_pages:
          example: 3
          type: integer
        total_results:
          example: 55
          type: integer
      type: object
    BucketOpsTotal:
      properties:
        bytes_received:
          description: The number of bytes received
          example: 123456
          type: integer
        bytes_sent:
          description: The number of bytes sent
          example: 123456
          type: integer
        ops:
          description: The number of operations
          example: 123456
          type: integer
        successful_ops:
          description: The number of successful operations
          example: 123456
          type: integer
      type: object
    BucketOps:
      properties:
        bytes_received:
          description: The number of bytes received
          example: 123456
          type: integer
        bytes_sent:
          description: The number of bytes sent
          example: 123456
          type: integer
        category:
          description: The category of the bucket operation
          enum:
          - list_bucket
          - list_buckets
          - get-bucket_location
          - create_bucket
          - stat_bucket
          - get_bucket_versioning
          - set_bucket_versioning
          - get_obj
          - put_obj
          - delete_obj
          example: put_obj
          type: string
        ops:
          description: The number of operations
          example: 123456
          type: integer
        successful_ops:
          description: The number of successful operations
          example: 123456
          type: integer
      type: object
    BucketUsage:
      properties:
        num_objects:
          description: The number of objects in the bucket
          example: 123456
          type: integer
        size:
          description: The size of the bucket in bytes
          example: 123456
          type: integer
        size_kb:
          description: The size of the bucket in kilobytes
          example: 123456
          type: integer
        timestamp:
          description: The time the snapshot was taken
          example: '2020-01-01T00:00:00Z'
          format: date-time
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http
    branded-calling_bearerAuth:
      description: API key passed as a Bearer token in the Authorization header
      scheme: bearer
      type: http
    oauthClientAuth:
      description: OAuth 2.0 authentication for Telnyx API and MCP integrations
      flows:
        authorizationCode:
          authorizationUrl: https://api.telnyx.com/v2/oauth/authorize
          refreshUrl: https://api.telnyx.com/v2/oauth/token
          scopes:
            admin: Administrative access to Telnyx resources
          tokenUrl: https://api.telnyx.com/v2/oauth/token
        clientCredentials:
          scopes:
            admin: Administrative access to Telnyx resources
          tokenUrl: https://api.telnyx.com/v2/oauth/token
      type: oauth2
    outbound-voice-profiles_bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
    pronunciation-dicts_bearerAuth:
      description: Telnyx API v2 key. Obtain from https://portal.telnyx.com
      scheme: bearer
      type: http
    stored-payment-transactions_bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http