Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
application/json
Create service account request (type must be 'service_account', roles are required)
Create a new service account with required roles. Only service accounts can be created via this endpoint.
curl --request POST \
--url https://api.cloud.flexprice.io/v1/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"roles": [
"<string>"
],
"type": "user"
}'{
"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"
}Enter your API key in the format x-api-key <api-key>*
Create service account request (type must be 'service_account', roles are required)
curl --request POST \
--url https://api.cloud.flexprice.io/v1/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"roles": [
"<string>"
],
"type": "user"
}'{
"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"
}