Skip to content
Navigation

List opt-outs in a list

Returns a paginated list of the opt-outs in one opt-out list, 50 per page.

GET
https://app.touchsms.com.au/api/v2/optout-lists/{optoutList}/optouts

Authorization

  • basicAuth
    HTTP
    required

Path parameters

  • optoutList
    integer
    required

    Opt-out list ID.

Query parameters

  • search
    optional
    string

    Partial or whole phone number, or the first name or surname of a matching contact.

  • page
    optional
    integer

    Page number. Prefer following links.next until it is null.

    minimum: 1 · default: 1

Returns

200

A page of opt-outs.

JSON
  • data
    optional
    array of
    object
    • id
      optional
      integer
    • user
      optional
      integer

      ID of the user that owns the opt-out.

    • number
      optional
      string

      Opted-out number in E.164 format.

    • method
      optional
      manual
      or
      import
      or
      link
      or
      reply
      or
      chat
      or
      api
      +2 more

      How the opt-out was created.

    • opt_out_list
      optional
      object

      The list this opt-out belongs to.

      • id
        optional
        integer
      • name
        optional
        string
      • is_default
        optional
        boolean
    • updated
      optional
      string
      format: date-time
    • created
      optional
      string
      format: date-time
  • meta
    optional
    object

    Position in the result set. Read per_page rather than assuming a page size.

    • current_page
      optional
      integer
    • from
      optional
      integer | null
    • last_page
      optional
      integer
    • path
      optional
      string
      format: uri
    • per_page
      optional
      integer
    • to
      optional
      integer | null
    • total
      optional
      integer

401

Missing, malformed or invalid API credentials.
JSON
  • message
    string
    required

403

The resource exists but does not belong to you, or you lack permission.
JSON
  • message
    string
    required

404

The resource does not exist.
JSON
  • message
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close