Create an API User
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
namestringRequiredExample:
Api user name
api_lam_userPattern: ^\w{1,20}$Responses
200
API user object
application/json
device_idstringRequiredExample:
1a24480566ce42c2namestringRequiredExample:
Api user name
api_lam_userrolestring · enumRequiredExample:
OPERATORPossible values: type_string · enumRequiredExample:
SOFT_PSDPossible values: workspacestringRequiredExample:
Your workspace
crypstocks400
User already exists
application/json
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