POST
/
v1
/
accounts
/
{account_id}
/
users
curl --request POST \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "displayName": "<string>",
  "role": "<string>",
  "email": "<string>"
}'
{
  "name": "<string>",
  "displayName": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "role": "<string>",
  "email": "<string>",
  "state": "STATE_UNSPECIFIED",
  "status": {
    "code": "OK",
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account_id
string
required

The Account Id

Query Parameters

userId
string

The user ID to use in the user name. e.g. my-user If not specified, a default ID is generated from user.email.

Body

application/json
The properties of the user being created.
role
string
required

The user's role, e.g. admin or user.

email
string
required

The user's email address.

displayName
string

Human-readable display name of the user. e.g. "Alice" Must be fewer than 64 characters long.

state
enum<string>
default:STATE_UNSPECIFIED

The state of the user.

Available options:
STATE_UNSPECIFIED,
CREATING,
READY,
UPDATING,
DELETING
status
object

Contains information about the user status.

Response

200 - application/json
A successful response.
role
string
required

The user's role, e.g. admin or user.

email
string
required

The user's email address.

name
string
displayName
string

Human-readable display name of the user. e.g. "Alice" Must be fewer than 64 characters long.

createTime
string

The creation time of the user.

state
enum<string>
default:STATE_UNSPECIFIED

The state of the user.

Available options:
STATE_UNSPECIFIED,
CREATING,
READY,
UPDATING,
DELETING
status
object

Contains information about the user status.