# Post Devices

**Method:** POST\
**Base URL:** [**https://api.adgatemedia.com/v1/user-based-api/devices**](https://api.adgatemedia.com/v1/user-based-api/devices)

### Required Query Parameters

| Parameter  | Description                                                                                                      | Type        | Example                            |
| ---------- | ---------------------------------------------------------------------------------------------------------------- | ----------- | ---------------------------------- |
| aff\_id    | Your affiliate ID. Can be found on the [Offers API page](http://panel.adgatemedia.com/affiliate/api/keys).       | Any Integer | `60000`                            |
| api\_key   | Your API key. Can be found on the [Offers API page](http://panel.adgatemedia.com/affiliate/api/keys).            | Any String  | `941bd1fecf7e6596823b895e04df3a0c` |
| wall\_code | Wall code that can be found on the [AdGate Rewards page](https://panel.adgatemedia.com/affiliate/vc-walls/index) | String      | `nQug`                             |
| user\_id   | The affiliate's user ID. Max length 255 bytes                                                                    | String      | `user12345`                        |

### Required JSON Body Parameters

| Field   | Note                                                                                                               | Type  | Example                         |
| ------- | ------------------------------------------------------------------------------------------------------------------ | ----- | ------------------------------- |
| devices | An array that any combination of `iphone`, `ipad`, or `android`. Provide an empty array to clear existing devices. | array | `["iphone", "ipad", "android"]` |

### Response

The response will contain the list of user devices after the update.

#### Sample Response

```
{
    "data": {
        "devices": [
            "android"
        ]
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.prodegeads.com/publisher-apis/user-based-api-v1/post-devices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
