For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Create an API User

Create an API user

post

Create an API user.

Authorizations
X-Ledger-API-KeystringRequired

If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.

Body
namestringRequired

Api user name

Example: api_lam_userPattern: ^\w{1,20}$
Responses
200

API user object

application/json
device_idstringRequiredExample: 1a24480566ce42c2
namestringRequired

Api user name

Example: api_lam_user
rolestring · enumRequiredExample: OPERATORPossible values:
type_string · enumRequiredExample: SOFT_PSDPossible values:
workspacestringRequired

Your workspace

Example: crypstocks
post/api_users
POST /api_users HTTP/1.1
X-Ledger-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "name": "api_lam_user"
}
{
  "device_id": "1a24480566ce42c2",
  "name": "api_lam_user",
  "role": "OPERATOR",
  "type_": "SOFT_PSD",
  "workspace": "crypstocks"
}

Last updated