Skip to main content
POST
/
users
/
search
List service accounts with filters
curl --request POST \
  --url https://api.cloud.flexprice.io/v1/users/search \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "end_time": "<string>",
  "expand": "<string>",
  "filters": [
    {
      "data_type": "string",
      "field": "<string>",
      "operator": "eq",
      "value": {
        "array": [
          "<string>"
        ],
        "boolean": true,
        "date": "<string>",
        "number": 123,
        "string": "<string>"
      }
    }
  ],
  "limit": 500,
  "offset": 1,
  "order": "asc",
  "roles": [
    "<string>"
  ],
  "sort": [
    {
      "direction": "asc",
      "field": "<string>"
    }
  ],
  "start_time": "<string>",
  "status": "published",
  "type": "user",
  "user_ids": [
    "<string>"
  ]
}'
{
  "items": [
    {
      "email": "<string>",
      "id": "<string>",
      "roles": [
        "<string>"
      ],
      "tenant": {
        "billing_details": {
          "address": {
            "address_city": "<string>",
            "address_country": "<string>",
            "address_line1": "<string>",
            "address_line2": "<string>",
            "address_postal_code": "<string>",
            "address_state": "<string>"
          },
          "email": "<string>",
          "help_email": "<string>",
          "phone": "<string>"
        },
        "created_at": "<string>",
        "id": "<string>",
        "metadata": {},
        "name": "<string>",
        "status": "<string>",
        "updated_at": "<string>"
      },
      "type": "user"
    }
  ],
  "pagination": {
    "limit": 123,
    "offset": 123,
    "total": 123
  }
}

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Body

application/json

Filter parameters

end_time
string
expand
string
filters
object[]

filters allows complex filtering based on multiple fields

limit
integer
Required range: 1 <= x <= 1000
offset
integer
Required range: x >= 0
order
enum<string>
Available options:
asc,
desc
roles
string[]
sort
object[]
start_time
string
status
enum<string>
Available options:
published,
deleted,
archived
type
enum<string>
Available options:
user,
service_account
user_ids
string[]

Specific filters for users

Response

OK

items
object[]
pagination
object