Search and filter service accounts by type, roles, etc.
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
}
}Enter your API key in the format x-api-key <api-key>*
Filter parameters
filters allows complex filtering based on multiple fields
Show child attributes
1 <= x <= 1000x >= 0asc, desc Show child attributes
published, deleted, archived user, service_account Specific filters for users
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
}
}