Skip to content
Navigation

List groups

Returns a paginated list of the contact groups on your account.

GET
https://app.touchsms.com.au/api/v2/groups

Authorization

  • basicAuth
    HTTP
    required

Query parameters

  • search
    optional
    string

    Search term.

  • sort_by
    optional
    name
    or
    created

    Field to sort by.

    default: "name"
  • sort_order
    optional
    asc
    or
    desc

    Sort direction.

    default: "asc"
  • per_page
    optional
    integer

    Results per page.

    maximum: 200 · minimum: 10 · default: 50
  • page
    optional
    integer

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

    minimum: 1 · default: 1

Returns

200

A page of groups.

JSON
  • data
    optional
    array of
    object
    • id
      optional
      integer
    • name
      optional
      string
    • status
      optional
      boolean

      Whether the group is active.

    • group_email
      optional
      string | null

      Email-to-SMS address that sends to every contact in the group.

      format: email
    • is_global
      optional
      boolean

      Whether the group is shared across the whole account.

    • 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

422

The request failed validation. errors lists the messages for each invalid field.
JSON
  • message
    optional
    string
  • errors
    optional
    map of
    array<string>

Type to search…

↑↓ navigate↵ selectEsc close