Skip to main content
POST
/
users
Create service account
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"
}

Authorizations

x-api-key
string
header
required

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)

roles
string[]
required

Roles are required

Minimum length: 1
type
enum<string>
required
Available options:
user,
service_account

Response

Created

email
string

Empty for service accounts

id
string
roles
string[]
tenant
object
type
enum<string>
Available options:
user,
service_account