Skip to content
Navigation

Get an opt-out list

Returns a single opt-out list, including how many opt-outs it contains.

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

Authorization

  • basicAuth
    HTTP
    required

Path parameters

  • optoutList
    integer
    required

    Opt-out list ID.

Returns

200

The opt-out list.

JSON
  • data
    optional
    object
    • id
      optional
      integer
    • name
      optional
      string
    • is_default
      optional
      boolean

      Whether this is your default opt-out list.

    • opt_out_count
      optional
      integer

      Number of opt-outs in the list.

    • created_at
      optional
      string
      format: date-time
    • updated_at
      optional
      string
      format: date-time

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