> ## Documentation Index
> Fetch the complete documentation index at: https://docs.embedads.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add User

> Grants someone access to the Advertiser's account in the admin portal. You can also do this manually on the Advertiser's Users page in the admin portal. The API does **not** currently email/inform the user that they have been added.

### Path Parameters

<ParamField path="advertiserID" type="number" required={true}>
  The advertiser ID.
</ParamField>

### Body Parameters

<ParamField body="email" type="string" required={true}>
  The email address of the user.
</ParamField>

<ParamField body="role" type="string" required={true}>
  The role of the user. Currently, only `ADMIN` is supported.
</ParamField>

### Response

<ResponseField name="advertiser_id" type="number">
  The advertiser ID.
</ResponseField>

<ResponseField name="email" type="string">
  The email address of the user.
</ResponseField>

<ResponseField name="created_at" type="string">
  A timestamp of when the user was created.
</ResponseField>

<ResponseField name="role" type="string">
  The role of the user.
</ResponseField>

<ResponseExample>
  ```json 201 theme={null}
  [
      {
          "advertiser_id": 1,
          "email": "email@example.com",
          "created_at": "2020-01-01T00:00:00Z",
          "role": "ADMIN"
      }
  ]
  ```

  ```json 400 theme={null}
  {
      "error": "email is required"
  }
  ```

  ```json 500 theme={null}
  {
      "error": "Internal server error"
  }
  ```
</ResponseExample>
