curl --request POST \
--url https://us.api.flexprice.io/v1/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"type": "user",
"email": "<string>",
"roles": [
"<string>"
]
}
'{
"email": "<string>",
"id": "<string>",
"password": "<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": "2023-11-07T05:31:56Z",
"id": "<string>",
"metadata": {},
"name": "<string>",
"status": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"type": "user"
}Create a user account (type=user, email required; returns user + password for login) or a service account (type=service_account, roles required) for API/automation access.
curl --request POST \
--url https://us.api.flexprice.io/v1/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"type": "user",
"email": "<string>",
"roles": [
"<string>"
]
}
'{
"email": "<string>",
"id": "<string>",
"password": "<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": "2023-11-07T05:31:56Z",
"id": "<string>",
"metadata": {},
"name": "<string>",
"status": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"type": "user"
}Enter your API key in the format x-api-key <api-key>*
Create user (email, type=user) or service account (type=service_account, roles)