Hello, I am trying to use the Toggl API (v9). I’m creating a workspace project and am getting an error, PaymentRequired. I’m on the free tier. I understand the API is still available to the free users, so I’m not sure what I’m doing wrong.
The POST URL is: workspaces/<number>/projects.
var requestBody = new
{
active = true,
color = "#FFFFFF",
is_private = false,
name = "test",
template = false
};
Hey
Thanks for reaching out — you’re absolutely right that the API is available to free users. In this case, the error you’re seeing is most likely caused by the color value used when creating the project.
The free plan only supports a limited set of preset colors, and custom hex codes like "#FFFFFF" aren’t allowed.
Try using one of the supported preset colors — I hope that resolves it, but please let me know if you still run into any issues!