Messagebird · Schema
Leg
Properties
| Name | Type | Description |
|---|---|---|
| id | string | The unique identifier of the leg. |
| callId | string | The unique identifier of the parent call. |
| source | string | The source number or SIP URI. |
| destination | string | The destination number or SIP URI. |
| status | string | The status of the leg. |
| direction | string | The direction of the leg. |
| duration | integer | The duration of the leg in seconds. |
| createdAt | string | The date and time when the leg was created. |
| updatedAt | string | The date and time when the leg was last updated. |
| answeredAt | string | The date and time when the leg was answered. |
| endedAt | string | The date and time when the leg ended. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/Leg",
"title": "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."
}
}
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/messagebird-leg"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.