API Documentation

Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

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.

Connect OAuth

To connect to Roborder API, you can use the standard OAuth 2 to get an ACCESS TOKEN.

Setup OAuth

To use OAuth, follow these steps in your Roborder Dashboard to generate OAuth Credentials:

  • Go to Developer > Apps in sidebar menu in your Dashboard and Click on Add App button.
  • Enter App Details (name, description, logo) then click on Save. This will automatically generate the OAuth credentials (Client ID and Client SECRET).
  • Enter your redirect URI - Example: https://your-app.com/callback

Authorization Request

To obtain an authorization code, redirect user to Roborder with the following URL:

Scopes

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/user
  • orders:read: GET /v1/orders
  • products:read: GET /v1/products
  • products:write: POST /v1/products

Exchange Code for Access Token

User 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.

POST
https://api.roborder.ai
/oauth/token

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Form Parameters

Example request:
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 >"
}"
                        
Example response:

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:

POST
https://api.roborder.ai
/oauth/token

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Form Parameters

Example request:
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 >"
}"
                        

Endpoints

Get Authenticated Account

GET
https://api.roborder.ai
/v1/me
requires authentication

Returns the account that owns the access token. Requires the account:read scope.

Headers

Authorization
Example:
Bearer {ACCESS_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.roborder.ai/v1/me" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "success": true,
    "data": {
        "id": 1111,
        "name": "User Name",
        "email": "[email protected]"
    },
    "message": "Get account successfully."
}

Get User

GET
https://api.roborder.ai
/v1/user
requires authentication

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.

Headers

Authorization
Example:
Bearer {ACCESS_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.roborder.ai/v1/user" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "success": true,
    "data": {
        "id": 1111,
        "email": "[email protected]"
    },
    "message": "Get User successfully."
}

Store Product

POST
https://api.roborder.ai
/v1/products
requires authentication

Requires the products:write scope.

Headers

Authorization
Example:
Bearer {ACCESS_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
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.\"
}"
Example response:
{
    "success": true,
    "message": "Product stored successfully."
}

List Products

GET
https://api.roborder.ai
/v1/products
requires authentication

Requires the products:read scope.

Headers

Authorization
Example:
Bearer {ACCESS_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.roborder.ai/v1/products" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
"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."
}

List Orders

GET
https://api.roborder.ai
/v1/orders
requires authentication

Requires the orders:read scope.

Headers

Authorization
Example:
Bearer {ACCESS_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.roborder.ai/v1/orders" \
    --header "Authorization: Bearer {ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
"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."
}

List Campaigns

GET
https://api.roborder.ai
/v1/campaigns
requires authentication

Returns the campaigns owned by the access token, newest first, with their settings and results. Requires the campaigns:read scope.

Headers

Authorization
Example:
Bearer {ACCESS_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

status
string

Filter by status. One of draft, live, paused, completed.

Example:
live
type
string

Filter by type. One of growth, leads, replies, sales.

Example:
growth
page_id
integer

Only campaigns for this page.

Example:
1
search
string

Match campaign names.

Example:
summer
limit
integer

Results per page. Defaults to 20. Maximum 100.

Example:
20
page
integer

Page number, starting at 1.

Example:
1

Body Parameters

Example request:
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
}"
Example response:
{
    "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."
}

Get Campaign

GET
https://api.roborder.ai
/v1/campaigns/{id}
requires authentication

Returns one campaign owned by the access token. Another account's campaign is not found. Requires the campaigns:read scope.

Headers

Authorization
Example:
Bearer {ACCESS_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The campaign id.

Example:
1
Example request:
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"
Example response:
{
    "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."
}
{
    "message": "Campaign not found"
}