"403 Forbidden" when creating a project via API

Hi all,

I am using API to create a project but failed with the below error message.

$ curl -s -X POST "https://gitlab.com/api/v4/projects/user/$id?name=test_glcreate&private_token=$token"
{"message":"403 Forbidden"}

The token is my personal access token by clicking all permission checkboxes. Sounds like my account still does not have permission to create a project using the token. Can you help point out how could I set up a good token so that I can create a project via API? Thank you.

Best regards,

1 Like

I too have the same issue , Did you solved it by any chance

instead of creating at root level try at user level
Projects API | GitLab use this instead of the endpoint you using. That worked for me