Skip to main content
GET
/
v2
/
private
/
fundraiser
/
{id}
/
teams
Get Campaign Teams
curl --request GET \
  --url https://api.crowdchange.dev/v2/private/fundraiser/{id}/teams \
  --header 'Authorization: <api-key>'
[
  {
    "id": 1,
    "name": "Team A",
    "amount_goal": 1000,
    "amount_raised": 550,
    "url": "https://demo.crowdchange.dev/1/team/2",
    "language": "en",
    "fundraiser": {
      "id": 101,
      "name": "Gala Night",
      "tags_list": [
        "tag1",
        "tag2"
      ]
    },
    "user": {
      "id": 1,
      "name": "John Snow",
      "first_name": "John",
      "last_name": "Snow",
      "title": "Mr.",
      "email": "john@crowdchange.co"
    },
    "n_donors": 100,
    "n_pages": 50,
    "created_at": "2022-01-01 16:00:03",
    "custom_data": [
      {
        "field_id": 1001,
        "source_id": 11,
        "name": "Phone Number",
        "content": "555-123-4567",
        "field_custom_id": "ABC-123",
        "response_custom_id": "ABC-123"
      }
    ]
  }
]

Path parameters

id
integer
required
Fundraiser ID.

Query parameters

text
string
Search term.
page
integer
Page number. Default: 1
limit
integer
Number of results to return. Default: 100
sort
string
Key to sort by. Allowed values: id, name, amount_raised, amount_goal
direction
string
Direction of sorting. Allowed values: asc, desc

Response

Returns an array of objects with the following fields.
id
integer
Team ID.
name
string
Team name.
amount_goal
number
Goal amount.
amount_raised
number
Amount raised by the team.
url
string
Full URL to team’s page.
language
string
Team language. Allowed values: en, fr
fundraiser
object
user
object
n_donors
integer
Number of donors.
n_pages
integer
Number of pages.
created_at
string
Team creation date.
custom_data
object[]
List of custom questions and responses.
Other responses
StatusDescription
400Bad Request
401Unauthorized
403Forbidden
[
  {
    "id": 1,
    "name": "Team A",
    "amount_goal": 1000,
    "amount_raised": 550,
    "url": "https://demo.crowdchange.dev/1/team/2",
    "language": "en",
    "fundraiser": {
      "id": 101,
      "name": "Gala Night",
      "tags_list": [
        "tag1",
        "tag2"
      ]
    },
    "user": {
      "id": 1,
      "name": "John Snow",
      "first_name": "John",
      "last_name": "Snow",
      "title": "Mr.",
      "email": "john@crowdchange.co"
    },
    "n_donors": 100,
    "n_pages": 50,
    "created_at": "2022-01-01 16:00:03",
    "custom_data": [
      {
        "field_id": 1001,
        "source_id": 11,
        "name": "Phone Number",
        "content": "555-123-4567",
        "field_custom_id": "ABC-123",
        "response_custom_id": "ABC-123"
      }
    ]
  }
]