Skip to main content

Robot API

1. Request: Get All Robots

  • Request type: GET
  • Route: /api/robots
  • Description: Retrieve a list of all robots.

Parameters

No parameters

Responses

CodeDescriptionMedia Type
200A list of robots.application/json

Example Value Schema

{
"statusCode": 200,
"messageCode": "success",
"robots": {
"totalCount": 2,
"items": [
{
"id": "0a3acb0f-4928-483b-8610-35049efa90fd",
"name": "100 Blog Posts",
"createdAt": 1748765979000,
"inputParameters": [
{
"type": "string",
"name": "originUrl",
"label": "Origin URL",
"required": true,
"defaultValue": "https://linktr.ee/blog/trends/"
}
]
},
{
"id": "9d458b00-e9dd-4799-b5f2-0166565d2af3",
"name": "HackerNews",
"createdAt": 1748765979219,
"inputParameters": [
{
"type": "string",
"name": "originUrl",
"label": "Origin URL",
"required": true,
"defaultValue": "https://news.ycombinator.com/"
}
]
}
]
}
}
CodeDescriptionMedia Type
500Error retrieving robots.application/json

Example Value Schema

{
"statusCode": 500,
"messageCode": "error",
"message": "Failed to retrieve robots"
}

2. Request: Get Robot By ID

  • Request type: GET
  • Route: GET /api/robots/{id}
  • Description: Retrieve a robot by its ID.

Parameters

NameDescription
id (required) stringThe ID of the robot to retrieve.

Responses

CodeDescriptionMedia Type
200Robot details.application/json

Example Value Schema

{
"statusCode": 200,
"messageCode": "success",
"robot": {
"id": "0a3acb0f-4928-483b-8610-35049efa90fd",
"name": "10 post link tree",
"createdAt": 1748765979000,
"inputParameters": [
{
"type": "string",
"name": "originUrl",
"label": "Origin URL",
"required": true,
"defaultValue": "https://linktr.ee/blog/trends/"
}
]
}
}
CodeDescriptionMedia Type
404Robot not found.application/json

Example Value Schema

{
"statusCode": 404,
"messageCode": "not_found",
"message": "Recording with ID not found."
}