Skip to content

403 error requesting valid path with read api token #309

@cayblood

Description

@cayblood

I'm using an api token to request a webtools custom URL alias and getting a 403. This same api token can request collection types successfully.

For example, this is successful:

curl http://localhost:1337/api/articles/u8rjnpkqfhnl1oqk7ouiyjwb -H "Authorization: Bearer <api token>" 
{"data":{"id":19,"documentId":"u8rjnpkqfhnl1oqk7ouiyjwb","title":"What Is Mormon Transhumanism?","slug":"1-what-is-mormon-transhumanism","visiblePublishedAt":"2022-07-01","description":"Mormon Transhumanism sees science and technology as divine tools that can help us to become more like God and fulfill humanity's spiritual potential.","createdAt":"2025-07-31T05:03:51.309Z","updatedAt":"2025-08-01T14:09:20.210Z","publishedAt":"2025-08-01T14:09:20.579Z","locale":"en"},"meta":{}}

Whereas this fails with a 403:

curl http://localhost:1337/api/webtools/router?path=/beliefs/primers/1-what-is-mormon-transhumanism -H "Authorization: Bearer <api token>" 
{"data":null,"error":{"status":403,"name":"ForbiddenError","message":"Forbidden","details":{}}}

Any ideas what I'm doing wrong? Thanks in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions