# Get all posts of an ambassador (widget) **GET /widget/ambassadors/{id}/posts** ## Servers - https://domain.tld/api/v2: https://domain.tld/api/v2 () ## Parameters ### Headers - **X-Popsell-Domain** (string) The domain of the user ### Path parameters - **id** (integer) The ambassador id ### Query parameters - **page** (integer) page number - **per_page** (integer) number of items per page - **filter[type]** (string) filter by type - **sort** (string) example :to sort the posts by start_date (-start_date: descending, date_insert: ascending) ## Responses ### 200 Returns all posts of an ambassador (paginated) #### Body: application/json (object) - **current_page** (integer(int32)) - **data** (array[object]) - **first_page_url** (string) - **from** (integer(int32)) - **last_page** (integer(int32)) - **last_page_url** (string) - **links** (array[object]) - **next_page_url** (string) - **path** (string) - **per_page** (integer(int32)) - **prev_page_url** (string(nullable)) - **to** (integer(int32)) - **total** (integer(int32)) ### 401 Unauthorized. #### Body: application/json (object) - **message** (string) ### 404 Not found - The ambassador does not exist [Powered by Bump.sh](https://bump.sh)