Program - List
Purpose
Retrieve a list of Programs which your API Credentials have access to. This includes public Programs maintained by Incentify and any custom (private) Programs owned by your account.
Request
Endpoint
GET /programs
Authentication
Include your API Key within the x-api-key header as described here.
Parameters
The following table lists the parameters that this query supports. All of the parameters listed are query parameters.
| Parameter | Type | Definition |
|---|---|---|
| cursor | string | The guid of the Program to start the page of results from, taken from meta.next_cursor of the previous response (ie; /programs?cursor=program_guid_here). Omit to retrieve the first page. |
| ids | string | comma seperated list of Incentify integer ids (optional) |
| guids | string | comma seperated list of Program guids (optional) |
Request Body
Do not provide a request body when calling this method.
Response
If successful, this method returns a response body with the following structure:
Response Body
{
"data": [
Program Resources listed here... (See "Program - Overview" page)
],
"meta": {
"next_cursor": "program_guid_here",
"total_record_count": 5000
}
}
Properties
The following table defines the properties that appear in this resource:
| Key | Type | Definition |
|---|---|---|
| data | list | List of Programs returned. The data structure of each Program is a Program Resource. |
| meta | object | Contains pagination information and the total record count. |
| meta.next_cursor | string | The guid of the Program to start the next page of results from. Each response returns a new value of next_cursor which you will pass as the cursor query parameter to retrieve the next page (ie; /programs?cursor=program_guid_here). . |
| meta.total_record_count | integer | The total number of Programs that match the request. |