API Reference
Causes

Causes

The Daffy API let's you get information about causes you or others care about.

Get User Causes

Resource

GET /v1/users/:user_id/causes

Path Params

NameTypeDescription
:user_idnumberThe user ID whose causes you want to get

Sample Response

[
  {
    "id": 11,
    "name": "International",
    "logo": "https://static.daffy.org/assets/default-non-profit-avatars/Default_International.png",
    "color": "#FEC398"
  },
  {
    "id": 18,
    "name": "Sports",
    "logo": "https://static.daffy.org/assets/default-non-profit-avatars/Default_Sports.png",
    "color": "#9EDFF3"
  }
]

Response Reference

NameTypeDescription
idnumberThe cause ID
namestringThe cause name
logoURLThe cause logo URL
colorstringThe cause color in Hex

Sample Request

curl "https://public.daffy.org/v1/users/<USER ID HERE>/causes" -H 'X-Api-Key: <YOUR KEY HERE>'