Retrieves a list of all Services for an account.

GET /v2/Services

Retrieves a list of all Services for an account.

Query parameters

  • PageSize integer(int64)

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

  • Page integer

    The page index. This value is simply for client state.

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • X-Rate-Limit-Limit string
    • X-Rate-Limit-Remaining string
    • X-Rate-Limit-Config string
    • 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
    • services array[object]
      Hide services attributes Show services attributes object
      • account_sid string | null

        The unique SID identifier of the Account the Service belongs to.

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

      • auto_redaction boolean | null

        Instructs the Speech Recognition service to automatically redact PII from all transcripts made on this service.

      • media_redaction boolean | null

        Instructs the Speech Recognition service to automatically redact PII from all transcripts media made on this service. The auto_redaction flag must be enabled, results in error otherwise.

      • auto_transcribe boolean | null

        Instructs the Speech Recognition service to automatically transcribe all recordings made on the account.

      • data_logging boolean | null

        Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.

      • date_created string(date-time) | null

        The date that this Service was created, given in ISO 8601 format.

      • date_updated string(date-time) | null

        The date that this Service was updated, given in ISO 8601 format.

      • friendly_name string | null

        A human readable description of this resource, up to 64 characters.

      • language_code string | null

        The language code set during Service creation determines the Transcription language for all call recordings processed by that Service. The default is en-US if no language code is set. A Service can only support one language code, and it cannot be updated once it's set.

      • sid string | null

        A 34 character string that uniquely identifies this Service.

      • unique_name string | null

        Provides a unique and addressable name to be assigned to this Service, assigned by the developer, to be optionally used in addition to SID.

      • url string(uri) | null

        The URL of this resource.

      • webhook_url string | null

        The URL Twilio will request when executing the Webhook.

      • webhook_http_method string

        The HTTP method for the Webhook. One of GET or POST.

        Values are GET, POST, or NULL.

      • read_only_attached_operator_sids array[string] | null

        Operator sids attached to this service, read only

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

      • version integer

        The version number of this Service.

        Default value is 0.

    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
GET /v2/Services
curl \
 --request GET 'https://intelligence.twilio.com/v2/Services' \
 --user "username:password"
Response examples (200)
{
  "meta": {
    "key": "services",
    "url": "https://intelligence.twilio.com/v2/Services?PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://intelligence.twilio.com/v2/Services?PageSize=50&Page=0",
    "previous_page_url": null
  },
  "services": [
    {
      "sid": "GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "url": "https://intelligence.twilio.com/v2/Services/GAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "version": 1,
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "unique_name": "something",
      "webhook_url": "https://www.twilio.com",
      "data_logging": true,
      "date_created": "2010-08-31T20:36:28Z",
      "date_updated": "2010-08-31T20:36:28Z",
      "friendly_name": "some friendly name",
      "language_code": "en-US",
      "auto_redaction": false,
      "auto_transcribe": true,
      "media_redaction": false,
      "webhook_http_method": "POST",
      "read_only_attached_operator_sids": [
        "LYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      ]
    }
  ]
}
{
  "meta": {
    "key": "services",
    "url": "https://intelligence.twilio.com/v2/Services?PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://intelligence.twilio.com/v2/Services?PageSize=50&Page=0",
    "previous_page_url": null
  },
  "services": []
}