Skip to main content
POST
/
api
/
v1
/
teams
/
{team_id}
/
segments
/
search
Contacts Matching
curl --request POST \
  --url https://api.member.dev/api/v1/teams/{team_id}/segments/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "conditions": {
        "groups": [
          {
            "conditions": [
              {
                "operator": "<string>",
                "type": "<string>",
                "value": {
                  "text": "<string>"
                }
              }
            ],
            "logic": "<string>"
          }
        ],
        "version": 123
      },
      "page": {
        "after": "<string>",
        "size": 25
      }
    },
    "type": "<string>"
  }
}
'
{
  "data": [
    {
      "attributes": {
        "contact_id": "<string>",
        "team_id": "<string>"
      },
      "id": "<string>",
      "type": "team_contact_ref"
    }
  ],
  "links": {},
  "meta": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string
required

Body

application/vnd.api+json
data
SegmentSearchResource · object
required

Response

Successful Response

JSON:API list response for team-contact-ref resources.

Returned by GET /{segment_id}/members. The meta and links shapes mirror the pattern used by other paginated list endpoints in this module.

data
TeamContactRefResource · object[]
required
meta
Meta · object
required