This documentation aims to provide all the information you need to work with our API.
To authenticate requests, include an Authorization header with the value "Bearer {ACCESS_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
To connect to Roborder API, you can use the standard OAuth 2 to get an ACCESS TOKEN.
To use OAuth, follow these steps in your Roborder Dashboard to generate OAuth Credentials:
To obtain an authorization code, redirect user to Roborder with the following URL:
Request only the scopes your app needs, separated by spaces. Each endpoint returns 403 if the access token doesn't have its scope.
account:read: GET /v1/me, GET /v1/userorders:read: GET /v1/ordersproducts:read: GET /v1/productsproducts:write: POST /v1/productsUser will accept the request via the authorization page, they will be redirected to the specified redirect URI (https://your-app.com/callback). You can then exchange the authorization code for an access token.
curl --request POST \
--post "https://api.roborder.ai/oauth/token" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--form-data "{
\"grant_type\": \"authorization_code\",
\"client_id\": \"< CLIENT ID >\"
\"client_secret\": \"< CLIENT SECRET >\"
\"redirect_uri\": \"https://your-app.com/callback\"
\"code\": \"< CODE >"
}"
{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token": "< ACCESS TOKEN >",
"refresh_token": "< REFRESH TOKEN >"
}
The access token typically has a lifetime of one year unless it's revoked. You can refresh it using the refresh_token attribute you got from the response. Here's an example of how to refresh it:
curl --request POST \
--post "https://api.roborder.ai/oauth/token" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--form-data "{
\"grant_type\": \"authorization_code\",
\"client_id\": \"< CLIENT ID >\"
\"client_secret\": \"< CLIENT SECRET >\"
\"redirect_uri\": \"https://your-app.com/callback\"
\"code\": \"< CODE >"
}"
Returns the account that owns the access token. Requires the account:read scope.
curl --request GET \
--get "https://api.roborder.ai/v1/me" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"success": true,
"data": {
"id": 1111,
"name": "User Name",
"email": "[email protected]"
},
"message": "Get account successfully."
}
Deprecated: use GET /v1/me. Returns the id and email of the account that owns the access token.
Any user_id parameter is ignored. Requires the account:read scope.
curl --request GET \
--get "https://api.roborder.ai/v1/user" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"success": true,
"data": {
"id": 1111,
"email": "[email protected]"
},
"message": "Get User successfully."
}
Requires the products:write scope.
curl --request POST \
"https://api.roborder.ai/v1/products" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"error\",
\"sku\": \"qui\",
\"link\": \"https:\\/\\/www.example.com\\/product-name\",
\"sell_price\": 100,
\"image\": \"https:\\/\\/www.example.com\\/product-name.jpg\",
\"description\": \"Qui nesciunt distinctio corrupti molestiae molestiae delectus esse ea.\"
}"
{
"success": true,
"message": "Product stored successfully."
}
Requires the products:read scope.
curl --request GET \
--get "https://api.roborder.ai/v1/products" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"success":true,
"data": {
"id": 1,
"sku": "product-sku",
"name": "product-name",
"description": "product-description",
"link": "https://www.example.com/product-name",
"sell_price": 100
"image": "https://www.example.com/product-name.jpg"
},
"message":"Get Products successfully."
}
Requires the orders:read scope.
curl --request GET \
--get "https://api.roborder.ai/v1/orders" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"success":true,
"data": {
"id": 1,
"customer_name": "customer-name",
"platform": "Facebook",
"phone": "22222222",
"email": "[email protected]",
"city": "Tunis",
"country": "Tunisia",
"status": "NEW",
"created_at": "2026/11/05 09:40",
"page": {
"id": "1",
"name": "page-name",
"link": "https://www.facebook.com/100089461361197004",
},
"products": [
{
"id": 1,
"sku": "1234",
"name": "product-name",
"link": "https://www.example.com/product-name",
"price": 100,
"quantity": 2,
"total": 200
}
],
"sheet": {
"id": 1,
"spreadsheet_name": "sheet-name",
"spreadsheet_id": "1k4IwMwZQdwciuXA1mCOnGEL2pSWmMXwJyzHvbbXVu7o",
"email": "[email protected]"
}
},
"message":"Get Orders successfully."
}
Returns the campaigns owned by the access token, newest first, with their settings and results.
Requires the campaigns:read scope.
Filter by status. One of draft, live, paused, completed.
Filter by type. One of growth, leads, replies, sales.
Only campaigns for this page.
Match campaign names.
Results per page. Defaults to 20. Maximum 100.
Page number, starting at 1.
curl --request GET \
--get "https://api.roborder.ai/v1/campaigns?status=live&type=growth&page_id=1&search=summer&limit=20&page=1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"page_id\": 16,
\"search\": \"ivhrfo\",
\"limit\": 21,
\"page\": 70
}"
{
"success": true,
"data": [
{
"id": 1,
"name": "Summer growth",
"type": "growth",
"target": "followers",
"description": "Comment to get the reward",
"status": "live",
"keywords": "free,gift",
"follow_required": true,
"review_required": false,
"reply_language": "en",
"ai_assistant": true,
"hide_comment": false,
"page": {
"id": 1,
"name": "Shop page",
"platform": "instagram"
},
"comment_replies_count": 12,
"reward_sent_to_commenters_count": 4,
"followers_gained_count": 3,
"reward_sent_to_followers_count": 2,
"sheet_orders_count": 5,
"created_at": "2026-11-05T09:40:00.000000Z",
"updated_at": "2026-11-05T09:40:00.000000Z"
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 1,
"next_page": null
},
"message": "Get campaigns successfully."
}
Returns one campaign owned by the access token. Another account's campaign is not found.
Requires the campaigns:read scope.
The campaign id.
curl --request GET \
--get "https://api.roborder.ai/v1/campaigns/1" \
--header "Authorization: Bearer {ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" {
"success": true,
"data": {
"id": 1,
"name": "Summer growth",
"type": "growth",
"target": "followers",
"description": "Comment to get the reward",
"status": "live",
"keywords": "free,gift",
"follow_required": true,
"review_required": false,
"reply_language": "en",
"ai_assistant": true,
"hide_comment": false,
"page": {
"id": 1,
"name": "Shop page",
"platform": "instagram"
},
"comment_replies_count": 12,
"reward_sent_to_commenters_count": 4,
"followers_gained_count": 3,
"reward_sent_to_followers_count": 2,
"sheet_orders_count": 5,
"created_at": "2026-11-05T09:40:00.000000Z",
"updated_at": "2026-11-05T09:40:00.000000Z"
},
"message": "Get campaign successfully."
}