cURL
curl --request POST \ --url https://api.givebutter.com/v1/campaigns \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "type": "general", "title": "<string>", "subtitle": "<string>", "website": "<string>", "description": "<string>", "goal": 1, "end_at": "2023-11-07T05:31:56Z", "slug": "<string>", "beneficiary_id": 123, "timezone": "<string>", "currency": "USD", "settings": [ "<string>" ] } '
{ "id": "<string>", "code": "<string>", "account_id": "<string>", "event_id": "<string>", "type": "<string>", "title": "<string>", "subtitle": "<string>", "description": "<string>", "slug": "<string>", "url": "<string>", "goal": 123, "raised": 123, "donors": 123, "currency": "<string>", "cover": "<string>", "status": "<string>", "timezone": "<string>", "end_at": "<string>", "settings": [ { "name": "<string>", "value": "<string>" } ], "created_at": "<string>", "updated_at": "<string>", "event": { "title": "<string>", "type": "<string>", "location_name": "<string>", "address_formatted": "<string>", "google_place_id": "<string>", "start_at": "<string>", "end_at": "<string>", "timezone": "<string>", "details": "<string>", "private": "<string>", "tickets_required": "<string>", "livestream": "<string>", "livestream_start_at": "<string>", "livestream_end_at": "<string>", "created_at": "<string>", "updated_at": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
general
collect
fundraise
event
255
150
x >= 0
USD
CampaignResource
Show child attributes
Was this page helpful?
Contact support