[SOLVED] "invalid_grant" When adding goals to campaigns request

I’m trying to execute the following request, and it works without the fields, but when I add the fields[goal]= sections, it stops working and gives me an “invalid_grant” error.

What am I doing wrong?

Works:

campaigns?include=goals

Doesn’t work:

campaigns?include=goals&fields[goal]=amount_cents,completed_percentage

SOLVED!

The problem was not correctly URL encoding the square brackets.

1 Like