### Get Tasks for User Source: https://api.flyerservice.io/redoc Retrieve tasks for the user. Resources are allocated for 1 hour. Supports limiting the number of tasks returned. ```APIDOC ## POST /get_tasks ### Description Retrieve tasks for the user. Resources are allocated for 1 hour. ### Method POST ### Endpoint https://api.flyerservice.io/get_tasks ### Parameters #### Request Body - **key** (string) - Required - Key of the bot - **user_id** (integer) - Required - User ID - **language_code** (string) - Optional - User's language code - **limit** (integer) - Optional - Limit for tasks (default: 5, max: 10) ### Request Example ```json { "key": "string", "user_id": 0, "language_code": "string", "limit": 0 } ``` ### Response #### Success Response (200) - **result** (array) - Description - **signature** (string) - Description - **task** (string) - Description - **resource_id** (integer) - Description - **price** (integer) - Description - **link** (string) - Description - **links** (array) - Description - (string) - Description - **photo** (string) - Description - **name** (string) - Description - **is_ios_ban** (boolean) - Description - **status** (string) - Description - **attached_at** (integer) - Description - **error** (string) - Description ### Response Example ```json { "result": [ { "signature": "string", "task": "string", "resource_id": 0, "price": 0, "link": "string", "links": [ "string" ], "photo": "string", "name": "string", "is_ios_ban": true, "status": "string" } ], "attached_at": 0, "error": "string" } ``` ``` -------------------------------- ### Get Key Data Source: https://api.flyerservice.io/redoc Retrieve information about the bot key. Requires the bot's key as input. ```APIDOC ## POST /get_me ### Description Retrieve information about the bot key. ### Method POST ### Endpoint https://api.flyerservice.io/get_me ### Parameters #### Request Body - **key** (string) - Required - Key of the bot ### Request Example ```json { "key": "string" } ``` ### Response #### Success Response (200) - **type** (string) - Description - **key_number** (integer) - Description - **bot_id** (integer) - Description - **webhook** (string) - Description - **status** (boolean) - Description - **error** (string) - Description ### Response Example ```json { "type": "string", "key_number": 0, "bot_id": 0, "webhook": "string", "status": true, "error": "string" } ``` ``` -------------------------------- ### Get Bot Key Data Request Source: https://api.flyerservice.io/redoc This is a sample JSON payload for the `get_me` endpoint to retrieve information about the bot key. Ensure the 'key' field is a string. ```json { "key": "string" } ``` -------------------------------- ### Get Completed Tasks for User Source: https://api.flyerservice.io/redoc Retrieve a list of completed tasks for a given user. ```APIDOC ## POST /get_completed_tasks ### Description Retrieve completed tasks for the user. ### Method POST ### Endpoint https://api.flyerservice.io/get_completed_tasks ### Parameters #### Request Body - **key** (string) - Required - Key of the bot - **user_id** (integer) - Required - User ID ### Request Example ```json { "key": "string", "user_id": 0 } ``` ### Response #### Success Response (200) - **result** (object) - Description - **completed_tasks** (array) - Description - **signature** (string) - Description - **task** (string) - Description - **price** (integer) - Description - **status** (string) - Description - **count_all_tasks** (integer) - Description - **attached_at** (integer) - Description - **error** (string) - Description ### Response Example ```json { "result": { "completed_tasks": [ { "signature": "string", "task": "string", "price": 0, "status": "string" } ], "count_all_tasks": 0 }, "attached_at": 0, "error": "string" } ``` ``` -------------------------------- ### Get Tasks for User Response Source: https://api.flyerservice.io/redoc A successful response (200) from the `get_tasks` endpoint, containing a list of tasks with their details, status, and pricing, along with attachment information. ```json { "result": [ { "signature": "string", "task": "string", "resource_id": 0, "price": 0, "link": "string", "links": [ "string" ], "photo": "string", "name": "string", "is_ios_ban": true, "status": "string" } ], "attached_at": 0, "error": "string" } ``` -------------------------------- ### Get Completed Tasks for User Response Source: https://api.flyerservice.io/redoc A successful response (200) from the `get_completed_tasks` endpoint, providing a list of completed tasks and the total count of all tasks. ```json { "result": { "completed_tasks": [ { "signature": "string", "task": "string", "price": 0, "status": "string" } ], "count_all_tasks": 0 }, "attached_at": 0, "error": "string" } ``` -------------------------------- ### Get Bot Key Data Response Source: https://api.flyerservice.io/redoc A successful response (200) from the `get_me` endpoint, providing details about the bot's key, ID, webhook, and status. ```json { "type": "string", "key_number": 0, "bot_id": 0, "webhook": "string", "status": true, "error": "string" } ``` -------------------------------- ### Get Tasks for User Request Source: https://api.flyerservice.io/redoc This JSON payload is used for the `get_tasks` endpoint to retrieve tasks for a user. It includes the bot's key, user ID, language code, and an optional limit for the number of tasks. ```json { "key": "string", "user_id": 0, "language_code": "string", "limit": 0 } ``` -------------------------------- ### Get Completed Tasks for User Request Source: https://api.flyerservice.io/redoc This JSON payload is used for the `get_completed_tasks` endpoint to retrieve a list of tasks that a user has completed. ```json { "key": "string", "user_id": 0 } ``` -------------------------------- ### Check Subscription Status Source: https://api.flyerservice.io/redoc Verify mandatory subscription status for a user. Requires bot key, user ID, and optionally language code and message details. ```APIDOC ## POST /check ### Description Verify mandatory subscription status. ### Method POST ### Endpoint https://api.flyerservice.io/check ### Parameters #### Request Body - **key** (string) - Required - Key of the bot - **user_id** (integer) - Required - User ID - **language_code** (string) - Optional - User's language code - **message** (object) - Optional - Message details - **rows** (integer) - Description - **text** (string) - Description - **button_bot** (string) - Description - **button_channel** (string) - Description - **button_boost** (string) - Description - **button_url** (string) - Description - **button_fp** (string) - Description ### Request Example ```json { "key": "string", "user_id": 0, "language_code": "string", "message": { "rows": 0, "text": "string", "button_bot": "string", "button_channel": "string", "button_boost": "string", "button_url": "string", "button_fp": "string" } } ``` ### Response #### Success Response (200) - **skip** (boolean) - Description - **attached_at** (integer) - Description - **error** (string) - Description - **warning** (string) - Description - **info** (string) - Description ### Response Example ```json { "skip": true, "attached_at": 0, "error": "string", "warning": "string", "info": "string" } ``` ``` -------------------------------- ### Check Subscription Status Request Source: https://api.flyerservice.io/redoc This JSON payload is used for the `check` endpoint to verify a user's subscription status. It requires the bot's key, user ID, and optionally language code and message details. ```json { "key": "string", "user_id": 0, "language_code": "string", "message": { "rows": 0, "text": "string", "button_bot": "string", "button_channel": "string", "button_boost": "string", "button_url": "string", "button_fp": "string" } } ``` -------------------------------- ### Check Task Status Source: https://api.flyerservice.io/redoc Verify the status of a specific task using its signature. ```APIDOC ## POST /check_task ### Description Verify the status of a task. ### Method POST ### Endpoint https://api.flyerservice.io/check_task ### Parameters #### Request Body - **key** (string) - Required - Key of the bot - **signature** (string) - Required - Task signature and identifier ### Request Example ```json { "key": "string", "signature": "string" } ``` ### Response #### Success Response (200) - **result** (string) - Description - **error** (string) - Description ### Response Example ```json { "result": "string", "error": "string" } ``` ``` -------------------------------- ### Check Subscription Status Response Source: https://api.flyerservice.io/redoc A successful response (200) from the `check` endpoint, indicating whether the user should be skipped, when they were attached, and any associated messages. ```json { "skip": true, "attached_at": 0, "error": "string", "warning": "string", "info": "string" } ``` -------------------------------- ### Check Task Status Response Source: https://api.flyerservice.io/redoc A successful response (200) from the `check_task` endpoint, returning the status of the task or an error message. ```json { "result": "string", "error": "string" } ``` -------------------------------- ### Check Task Status Request Source: https://api.flyerservice.io/redoc This JSON payload is used for the `check_task` endpoint to verify the status of a specific task using its signature. ```json { "key": "string", "signature": "string" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.