messagebird Legs API

Operations for viewing and managing call legs. A leg represents a single voice connection within a call.

Operations 1

GET /calls/{callId}/legs List legs for a call #

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/messagebird-legs-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

messagebird-legs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MessageBird Voice Calling Legs API
  description: The MessageBird Voice Calling API enables developers to make, receive, and control phone calls programmatically. It supports call flows for building interactive voice response systems, call recording, call transfers, and real-time webhooks for call events. The API provides global coverage and can be used to build contact center solutions, automated calling systems, and voice-enabled applications.
  version: '1.0'
  contact:
    name: MessageBird Support
    url: https://support.messagebird.com
  termsOfService: https://www.messagebird.com/en/terms
servers:
- url: https://voice.messagebird.com
  description: Production Server
security:
- accessKey: []
tags:
- name: Legs
  description: Operations for viewing and managing call legs. A leg represents a single voice connection within a call.
paths:
  /calls/{callId}/legs:
    get:
      operationId: listLegs
      summary: List legs for a call
      description: Retrieves a list of all legs associated with a specific call. Each leg represents a voice connection within the call.
      tags:
      - Legs
      parameters:
      - $ref: '#/components/parameters/callIdParam'
      responses:
        '200':
          description: A list of legs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegList'
        '401':
          description: Unauthorized
        '404':
          description: Call not found
components:
  schemas:
    LegList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Leg'
        pagination:
          $ref: '#/components/schemas/Pagination'
    Leg:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the leg.
        callId:
          type: string
          description: The unique identifier of the parent call.
        source:
          type: string
          description: The source number or SIP URI.
        destination:
          type: string
          description: The destination number or SIP URI.
        status:
          type: string
          description: The status of the leg.
          enum:
          - starting
          - ringing
          - ongoing
          - busy
          - no_answer
          - failed
          - hangup
        direction:
          type: string
          description: The direction of the leg.
          enum:
          - incoming
          - outgoing
        duration:
          type: integer
          description: The duration of the leg in seconds.
        createdAt:
          type: string
          format: date-time
          description: The date and time when the leg was created.
        updatedAt:
          type: string
          format: date-time
          description: The date and time when the leg was last updated.
        answeredAt:
          type: string
          format: date-time
          description: The date and time when the leg was answered.
        endedAt:
          type: string
          format: date-time
          description: The date and time when the leg ended.
    Pagination:
      type: object
      properties:
        totalCount:
          type: integer
          description: The total number of items available.
        pageCount:
          type: integer
          description: The total number of pages.
        currentPage:
          type: integer
          description: The current page number.
        perPage:
          type: integer
          description: The number of items per page.
  parameters:
    callIdParam:
      name: callId
      in: path
      required: true
      description: The unique identifier of the call.
      schema:
        type: string
  securitySchemes:
    accessKey:
      type: apiKey
      in: header
      name: Authorization
      description: Access key authentication in the form of 'AccessKey {accessKey}'.
externalDocs:
  description: Voice Calling API Documentation
  url: https://developers.messagebird.com/api/voice-calling/