Skip to main content
GET
/
v1
/
campaigns
/
role
/
results
Get campaign results
curl --request GET \
  --url http://localhost:3000/dev/v1/campaigns/role/results \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "email": "[email protected]",
      "recommendation_status": "<string>",
      "overall_score": 123,
      "additional_scores": {
        "cefr": {
          "score": "<string>"
        }
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "order_index": "<string>"
    }
  ],
  "has_more": true,
  "last_record_index": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

campaign_id
string<uuid>
required

Unique identifier for the campaign

limit
integer
default:10

Number of results to return

Required range: 1 <= x <= 100
sort
enum<string>
default:desc

Sort order for the results

Available options:
desc,
asc
start_date
string<date>

Start date for filtering results (YYYY-MM-DD format)

end_date
string<date>

End date for filtering results (YYYY-MM-DD format)

starting_after
integer<int64>

Pagination cursor - results after this big integer value

report_type
enum<string>
default:OVERALL

Type of report to generate

Available options:
DETAILED,
OVERALL

Response

Campaign results response

Response for OVERALL report type

data
object[]

Array of campaign result records

has_more
boolean

Indicates whether there are more results available for pagination

last_record_index
string

The order index of the last record in the current page, used for pagination