Skip to main content

Create a batch of users

POST 

https://embedded.runalloy.com/2024-03//users/batch

Creates a new user in your Embedded account. The user record acts like a "container" to store all the integrations, workflows, and credentials for any given user. Returns a user identifier.

Request

Header Parameters

    Authorization stringrequired

    Default value: bearer YOUR_API_KEY

    Your Embedded API key for authorization

Body

    users json

    Default value: [{ username: 'user123', fullName: 'Joe Smoe' }, { username: 'user456' }, { username: 'janedoe', fullName: 'Jane Doe' }]

    An array of username and fullName to be created. Note that username is mandatory but fullName is optional. Limited to 1000 users at a time.

Responses

200

{
"message":"success",
"invalidUsers":[{"fullName":"Missing Username"},{"username": "alreadyexists123"}]
}
curl -L 'https://embedded.runalloy.com/2024-03/users/batch' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"users": "[{ \tusername: '\''user123'\'', \tfullName: '\''Joe Smoe'\'' }, { \tusername: '\''user456'\'' }, { \tusername: '\''janedoe'\'', \tfullName: '\''Jane Doe'\'' }]"
}'
Request Collapse all
Base URL
https://embedded.runalloy.com/2024-03
Parameters
— headerrequired
Body
{
  "users": "[{ \tusername: 'user123', \tfullName: 'Joe Smoe' }, { \tusername: 'user456' }, { \tusername: 'janedoe', \tfullName: 'Jane Doe' }]"
}
ResponseClear

Click the Send API Request button above and see the response here!