# Add to list
You can add a specific user to a list.
POST
/users-by-id/:custom_id/add_to_list/
Attributes | Type | Required | Description |
---|---|---|---|
custom_id | integer | yes | The unique identifier for the user which is provided by the client. |
list | integer | yes | A unique identifier for the list which is given by User.com automatically. |
# Request
- CURL
- JavaScript
- PHP
- Python
curl -X POST -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2" -H "Content-Type: application/json" -d '{
"list": 83
}' "https://<your_app_subdomain>.user.com/api/public/users-by-id/:custom_id/add_to_list/"
# Response
{
"id":1722
}