403 forbidden custom types api

Hello, we receive a 403 forbidden from cloudfront when we try to access our customtypes api. Happy to provide more details privately (e.g. the token and repo name)

curl --location --request GET 'https://customtypes.prismic.io' \

--header 'repository: REPO_NAME' \

--header 'Content-Type: application/json' \

--header 'Accept: application/json' \

--header 'Authorization: Bearer <<BEARER TOKEN FROM Custom types api tab in settings>>I'

Hello @patrick.nueser, welcome to the community. It seems like you haven’t passed a correct bearer token then. Can generate a new one in your repo and try again?

@Pau thanks for your reply. I created multiple tokens and all of them fail.

I use the copy to clipboard button to get the complete token ( I am using firefox)

Could you try disabling the old ones, creating a new one and try again with the curl request using this format?

curl --location --request GET 'https://customtypes.prismic.io/customtypes' \
--header 'repository: tutorial-series' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVjM2M3MTAzMTEwMDAwMWYwMGExYTZhMiIsInR5cGUiOiJ1c2VyIiwiZGF0ZSI6MTYxMzczNTY2NzIxNSwiaWF0IjoxNjEzNzM1NjY3fQ.Ex18_cuNtHes69me4pHQGLpiQ-OUbi42-qFxkZCG-yw'
1 Like

Got it. missed the customtypes part in the url :blush:

1 Like