Skip to content
Navigation

List opt-outs

Returns a paginated list of opt-outs across all of your opt-out lists, 100 per page.

GET
https://app.messageport.com.au/api/v2/optouts

Authorization

  • basicAuth
    HTTP
    required

Query parameters

  • search
    optional
    string

    Partial or whole phone number.

  • 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

Type to search…

↑↓ navigate↵ selectEsc close