CPA Ads Network
Fetch Tasks Endpoint
This endpoint will retrieve all the tasks without adding any impressions count.
- Parameters:
ads_user_id
: The unique identifier of the ads user (passed as a header)quantity
: The number of tasks to fetchexpiration_time
: The expiration time of the task (in seconds)platform
: The platforms to filter tasks byaction_type
: The action types to filter tasks bystatus
: The status to filter tasks by
- Returns:
TaskListResponse
: A list of all tasks available for the specified ads user and filters
- Raises:
HTTPException(500)
: If an unexpected error occurs during task fetching
GET
/
ads-network
/
fetch
Headers
ads-user-id
string
requiredThe UUID of the ads user
Query Parameters
quantity
integer
default: 5The number of tasks to fetch
expiration_time_in_hours
integer
default: 48The expiration time of the task in hours
platform
enum<integer>[] | null
0: TWITTER, 1: TELEGRAM, 2: WEB,
Available options:
0
, 1
, 2
action_type
enum<integer>[] | null
0: FOLLOW, 1: ACTION, 2: COMMENT,
Available options:
0
, 1
, 2
status
enum<integer>[] | null
Available options:
0
, 1
, 2
, 3
free
boolean | null
Whether to fetch free tasks
Response
200 - application/json
tasks
object[]
requiredtotal
integer
requiredexpiration
string
required