Skip to main content
POST
/
advertisers
/
{advertiserID}
/
users
Add User
curl --request POST \
  --url https://api.embedads.com/advertisers/{advertiserID}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "role": "<string>"
}'
[
    {
        "advertiser_id": 1,
        "email": "email@example.com",
        "created_at": "2020-01-01T00:00:00Z",
        "role": "ADMIN"
    }
]

Path Parameters

advertiserID
number
required
The advertiser ID.

Body Parameters

email
string
required
The email address of the user.
role
string
required
The role of the user. Currently, only ADMIN is supported.

Response

advertiser_id
number
The advertiser ID.
email
string
The email address of the user.
created_at
string
A timestamp of when the user was created.
role
string
The role of the user.
[
    {
        "advertiser_id": 1,
        "email": "email@example.com",
        "created_at": "2020-01-01T00:00:00Z",
        "role": "ADMIN"
    }
]