Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Campaigns

15 routes. Paths are relative to https://api.intersink.com/v1.

All groups

Fetch all campaigns (with optional search/filters)

GET/campaigns

Public: no sign-in needed.

Parameters

NameTypeDescription
qstring, queryGlobal text search query
categorystring, queryFilter by category ID
statusstring, queryFilter by status (e.g. published)
sortstring, querySorting string (e.g. -date_created)
limitstring, queryMaximum number of items to return
offsetstring, queryNumber of items to skip for pagination
active_profile_idstring, queryActive profile ID to fetch contextual data (likes, follow status)
user_profile_idstring, queryFilter by author profile id
pagestring, queryPage number
x-refstring, header

Response

200. The payload in data is not described in the spec yet.

Create a new campaign

POST/campaigns

Needs a signed-in user (Bearer token or access_token cookie).

Request body multipart/form-data

FieldTypeDescription
titlerequiredstring
descriptionrequiredstring
demandstring
categorystring
category_idstring
post_idstring
statusstring
verifiedstring
active_profile_idstring
institution_idstring
locationstringCoordinates as "latitude,longitude". Stored as a PostGIS point; place names are not geocoded. Example: "28.6139,77.2090"

Response

201. The payload in data is not described in the spec yet.

Get a specific campaign by ID

GET/campaigns/{id}

Public: no sign-in needed.

Parameters

NameTypeDescription
idrequiredstring, path
x-refstring, header

Response

200. The payload in data is not described in the spec yet.

Update an existing campaign

PATCH/campaigns/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Request body multipart/form-data

FieldTypeDescription
titlestring
descriptionstring
demandstring
categorystring
category_idstring
post_idstring
statusstring
verifiedstring
institution_idstring
locationstringCoordinates as "latitude,longitude". Stored as a PostGIS point; place names are not geocoded. Send an empty string to clear it. Example: "28.6139,77.2090"
mediaobjectExisting image ids to keep on update, e.g. [490,491]. Images not listed are removed.
keep_imagesobjectAlias of media: existing image ids to keep on update.

Response

200. The payload in data is not described in the spec yet.

Delete a campaign

DELETE/campaigns/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Publish a draft campaign (re-runs moderation; approved -> published)

POST/campaigns/{id}/publish

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

Get all updates for a campaign

GET/campaigns/{id}/updates

Public: no sign-in needed.

Parameters

NameTypeDescription
idrequiredstring, path
x-refstring, header
limitrequiredstring, query
offsetrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Create a new update for a campaign

POST/campaigns/{id}/updates

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Request body application/json

FieldTypeDescription
titlerequiredstringAt most 255 characters.
descriptionstring
filestring
statusnumberMinimum 1.

Response

201. The payload in data is not described in the spec yet.

Fetch campaigns by a specific category ID

GET/campaigns/category/{categoryId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
categoryIdrequiredstring, path
x-refstring, header

Response

200. The payload in data is not described in the spec yet.

Fetch all campaigns created by me

GET/campaigns/my

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
active_profile_idrequiredstring, query
limitrequiredstring, query
offsetrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Search campaigns by text, category, and pagination

GET/campaigns/search

Public: no sign-in needed.

Parameters

NameTypeDescription
x-refstring, header
active_profile_idrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Fetch all available campaign statuses

GET/campaigns/statuses

Public: no sign-in needed.

Response

200. The payload in data is not described in the spec yet.

Get trending campaigns feed based on total donations

GET/campaigns/trending

Public: no sign-in needed.

Parameters

NameTypeDescription
x-refstring, header
active_profile_idrequiredstring, query

Response

200. The payload in data is of type object.

Edit an existing campaign update

PATCH/campaigns/updates/{updateId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
updateIdrequiredstring, path

Request body application/json

FieldTypeDescription
titlestringAt most 255 characters.
descriptionstring
filestring
statusnumberMinimum 1.

Response

200. The payload in data is not described in the spec yet.

Delete a campaign update

DELETE/campaigns/updates/{updateId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
updateIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.