Telnyx Invoices API
The Invoices API from Telnyx — 2 operation(s) for invoices.
The Invoices API from Telnyx — 2 operation(s) for invoices.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/telnyx:telnyx-invoices-api"
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.
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: 3.2.0
info:
title: Telnyx Invoices API
version: 2.0.0
contact:
email: support@telnyx.com
x-endpoint-cost: light
x-refined-note:
- x-latency-category differs across the merged source definitions and was not carried
description: 'Operations tagged Invoices across 3 of this provider''s published API definitions: telnyx-openapi.json, telnyx-openapi.yml, telnyx-openapi_2.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.telnyx.com/v2
description: Version 2.0.0 of the Telnyx API
security:
- bearerAuth: []
tags:
- name: Invoices
paths:
/invoices:
get:
summary: List invoices
operationId: ListInvoices
description: Returns a paginated list of your invoices, with support for sorting.
parameters:
- name: sort
in: query
description: Specifies the sort order for results.
required: false
schema:
type: string
example: period_start
enum:
- period_start
- -period_start
- name: page
in: query
style: deepObject
explode: true
description: 'Consolidated page parameter (deepObject style). Originally: page[number], page[size]'
schema:
type: object
properties:
number:
type: integer
minimum: 1
default: 1
description: The page number to load
size:
type: integer
minimum: 1
maximum: 250
default: 20
description: The size of the page
responses:
'200':
description: List of invoices
content:
application/json:
schema:
type: object
properties:
meta:
type: object
properties:
total_results:
type: integer
example: 20
total_pages:
type: integer
example: 1
page_number:
type: integer
example: 1
page_size:
type: integer
example: 20
data:
type: array
items:
$ref: '#/components/schemas/Invoice'
'403':
$ref: '#/components/responses/invoice_ForbiddenErrorResponse'
default:
$ref: '#/components/responses/invoice_GenericErrorResponse'
tags:
- Invoices
servers:
- url: https://api.telnyx.com/v2
description: Version 2.0.0 of the Telnyx API
/invoices/{id}:
get:
summary: Get invoice by ID
operationId: GetInvoiceById
description: Retrieve a single invoice by its unique identifier.
parameters:
- name: id
in: path
description: Invoice UUID
required: true
schema:
type: string
format: uuid
- name: action
in: query
description: Invoice action
required: false
schema:
type: string
example: json
enum:
- json
- link
responses:
'200':
description: Get invoice details
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/InvoiceDetail'
'400':
$ref: '#/components/responses/invoice_BadRequestErrorResponse'
'403':
$ref: '#/components/responses/invoice_ForbiddenErrorResponse'
'404':
$ref: '#/components/responses/invoice_NotFoundErrorResponse'
default:
$ref: '#/components/responses/invoice_GenericErrorResponse'
tags:
- Invoices
servers:
- url: https://api.telnyx.com/v2
description: Version 2.0.0 of the Telnyx API
components:
responses:
invoice_BadRequestErrorResponse:
description: Invalid request parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Errors'
example:
errors:
- code: '10015'
title: Bad Request
detail: The request failed because it was not well-formed.
invoice_GenericErrorResponse:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/Errors'
example:
errors:
- code: '10007'
title: Unexpected error
detail: An unexpected error occured.
invoice_NotFoundErrorResponse:
description: Invoice not found
content:
application/json:
schema:
$ref: '#/components/schemas/Errors'
example:
errors:
- code: '10005'
title: Resource not found
detail: The requested resource or URL could not be found.
invoice_ForbiddenErrorResponse:
description: Insufficient permissions to access invoices
content:
application/json:
schema:
$ref: '#/components/schemas/Errors'
example:
errors:
- code: '10010'
title: Authorization failed
detail: You do not have permission to perform the requested action on the specified resource or resources.
invoice_GenericErrorResponse_2:
content:
application/json:
schema:
$ref: '#/components/schemas/invoice_Errors'
description: Unexpected error
invoice_ForbiddenErrorResponse_2:
content:
application/json:
schema:
$ref: '#/components/schemas/invoice_Errors'
description: Insufficient permissions to access invoices
invoice_NotFoundErrorResponse_2:
content:
application/json:
schema:
$ref: '#/components/schemas/invoice_Errors'
description: Invoice not found
InvoiceDetailResponse:
content:
application/json:
schema:
properties:
data:
$ref: '#/components/schemas/InvoiceDetail'
type: object
description: Get invoice details
BadRequestErrorResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/invoice_Errors'
description: Invalid request parameters
schemas:
Errors:
properties:
errors:
type: array
items:
$ref: '#/components/schemas/billing-group_Error'
type: object
billing-group_Error:
type: object
required:
- code
- title
properties:
code:
type: integer
format: int32
title:
type: string
detail:
type: string
source:
type: object
properties:
pointer:
description: JSON pointer (RFC6901) to the offending entity.
type: string
parameter:
description: Indicates which query parameter caused the error.
type: string
meta:
type: object
properties: {}
additionalProperties: true
InvoiceDetail:
type: object
properties:
invoice_id:
type: string
format: uuid
example: 48eff763-ea80-4345-b688-78249eb165a8
file_id:
type: string
format: uuid
example: 454ea3b0-9eaa-4fa9-992e-6d9f31c0a37e
period_start:
type: string
format: date
example: '2023-11-01'
period_end:
type: string
format: date
example: '2023-11-30'
paid:
type: boolean
example: true
url:
type: string
format: uri
example: https://api.telnyx.com:443/v2/invoices/48eff763-ea80-4345-b688-78249eb165a8
download_url:
type: string
format: uri
description: Present only if the query parameter `action=link` is set.
example: https://us-east-1.telnyxstorage.com/porting-documents/telnyx/...
Invoice:
type: object
properties:
invoice_id:
type: string
format: uuid
example: 48eff763-ea80-4345-b688-78249eb165a8
file_id:
type: string
format: uuid
example: 454ea3b0-9eaa-4fa9-992e-6d9f31c0a37e
period_start:
type: string
format: date
example: '2023-11-01'
period_end:
type: string
format: date
example: '2023-11-30'
paid:
type: boolean
example: true
url:
type: string
format: uri
example: https://api.telnyx.com:443/v2/invoices/48eff763-ea80-4345-b688-78249eb165a8
invoice_Error:
properties:
code:
type: string
detail:
type: string
meta:
additionalProperties: true
type: object
source:
properties:
parameter:
description: Indicates which query parameter caused the error.
type: string
pointer:
description: JSON pointer (RFC6901) to the offending entity.
type: string
type: object
title:
type: string
required:
- code
- title
type: object
invoice_Errors:
properties:
errors:
items:
$ref: '#/components/schemas/invoice_Error'
type: array
type: object
Errors_2:
properties:
errors:
type: array
items:
$ref: '#/components/schemas/Error'
type: object
Error:
required:
- code
- title
properties:
code:
type: string
x-format: int64
title:
type: string
detail:
type: string
description: A human-readable explanation of the error.
description:
type: string
source:
type: object
properties:
pointer:
description: JSON pointer (RFC6901) to the offending entity.
type: string
format: json-pointer
parameter:
description: Indicates which query parameter caused the error.
type: string
meta:
type: object
additionalProperties: true
example:
title: Invalid street address
source:
pointer: /street_address
code: '20207'
description: The street address provided is invalid.
type: object
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: API key
description: 'Telnyx API key supplied as `Authorization: Bearer <token>`. In production, auth may be validated by the API gateway and forwarded via Telnyx auth headers.'
Payment:
type: apiKey
in: header
name: Authorization
description: 'Machine Payment Protocol credential used on paid retries, sent as `Authorization: Payment ...`. Obtained by paying a challenge returned in the `WWW-Authenticate` header of a 402 response. This is not a Telnyx API key; initial challenge requests use standard bearer authentication instead.'
agent-memory_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key
bearerAuth:
type: http
scheme: bearer
branded-calling_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
collections_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Collections and results are automatically scoped to the authenticated user's organization.
number-reputation_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
oauthClientAuth:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://api.telnyx.com/v2/oauth/token
scopes:
admin: Administrative access to Telnyx resources
authorizationCode:
authorizationUrl: https://api.telnyx.com/v2/oauth/authorize
tokenUrl: https://api.telnyx.com/v2/oauth/token
refreshUrl: https://api.telnyx.com/v2/oauth/token
scopes:
admin: Administrative access to Telnyx resources
description: OAuth 2.0 authentication for Telnyx API and MCP integrations
outbound-voice-profiles_bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
pronunciation-dicts_bearerAuth:
type: http
scheme: bearer
description: Telnyx API v2 key. Obtain from https://portal.telnyx.com
rcs-registration_bearerAuth:
type: http
scheme: bearer
bearerFormat: API key
stored-payment-transactions_bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
transcriptions-search_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Results are automatically scoped to the authenticated user's organization.
web-search_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key
pay-connectors_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key, not the processor bearer token.
telnyxApiKey:
type: http
scheme: bearer
description: Management-only Telnyx account credential.
x-refined-from:
- telnyx-openapi.json
- telnyx-openapi.yml
- telnyx-openapi_2.json
x-service-info:
categories:
- communication
- developer-tools
docs:
apiReference: https://developers.telnyx.com
homepage: https://telnyx.com
llms: https://telnyx.com/llms.txt