Fetch recording

GET /v1/Trunks/{TrunkSid}/Recording

Recording settings for a trunk

Path parameters

  • TrunkSid string Required

    The SID of the Trunk from which to fetch the recording settings.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^TK[0-9a-fA-F]{32}$.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • mode string

      The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual.

      Values are do-not-record, record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual.

    • trim string

      The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence.

      Values are trim-silence or do-not-trim.

GET /v1/Trunks/{TrunkSid}/Recording
curl \
 --request GET 'https://trunking.twilio.com/v1/Trunks/{TrunkSid}/Recording' \
 --user "username:password"
Response examples (200)
{
  "mode": "do-not-record",
  "trim": "do-not-trim"
}