Request Parameters
This endpoint does not require any specific parameters, but standard authentication is required.Parameter | Type | Description | Required |
---|---|---|---|
None | - | This endpoint does not accept additional parameters | - |
Request Example
Response Example
Response Fields
Field | Type | Description |
---|---|---|
success | Boolean | Indicates whether the request was successful |
campaigns | Array | Array of campaign objects |
campaigns[].id | Integer | Unique identifier for the campaign |
campaigns[].name | String | Display name of the campaign |
campaigns[].campaign_type | String | Type of campaign (Campaign, Contract, Ambassador Program) |
campaigns[].status | String | Current status of the campaign (Active, Paused, Canceled, Completed, Archived, Void) |
Use Cases
- Campaign Filtering: Use campaign IDs to filter data in other API endpoints
- Campaign Management: Retrieve available campaigns for management interfaces
- Organization Setup: Get campaign information for initial application setup
- Reporting: Include campaign names and statuses in reports and analytics dashboards
- Status Monitoring: Track campaign statuses across your organization
Error Responses
- 401 Unauthorized: Invalid or missing Bearer token
- 403 Forbidden: API key doesn’t have permission to access campaigns
- 422 Unprocessable Entity: Organization not found
- 500 Internal Server Error: Server-side error occurred
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.