Create Account
POST /v1/accounts
Creates a new account for the API key's node.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <token> |
Content-Type | Yes | application/json |
X-Target-Server | Yes | accounts |
Request Body
| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
name | string | Yes | min: 2, max: 255 | Account name |
type | string | Yes | Must be a valid account type | Account type |
status | integer | Yes | Must be a valid account status | Account status |
{
"name": "My Organisation Account",
"type": "organisation",
"status": 1
}
Response
201 Created
Account created successfully. No response body.
400 Bad Request
Validation error.
{
"code": 0,
"domain": 0,
"message": "name is required"
}
401 Unauthorized
Invalid or missing token.