POST custom_collections returning authorizatin url

Shopify Partner
3 0 0



I'm trying to create a custom collection trough the 2023-01 version of the REST API:


The API returns a 200 OK status code, but inside the body there is an html page that point to 

Other api calls (products, metafields, ...) with the same api_key, api_password and store_name are passing without any issues.
The api has the correct roles for creating and updating collections: write_products, write_product_listings
 Below a screenshot of the response


Replies 3 (3)

Shopify Staff
1382 229 481

Hi @louagej 👋


To make valid authenticated requests, you will need to include your admin access token as a `X-Shopify-Access-Token` header on all Admin API requests. Below is an example of a valid authenticated request to create a custom collection:


curl -d '{"custom_collection":{"title":"test"}}' \
-X POST "" \
-H "X-Shopify-Access-Token: ACCESS_TOKEN" \
-H "Content-Type: application/json"


Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit or the Shopify Web Design and Development Blog

Shopify Partner
3 0 0

Hi @ShopifyDevSup ,


Thank you for your reply, but

other api calls (products, metafields, ...) with the same access_token runs without any issues.


Shopify Partner
3 0 0

Dear @ShopifyDevSup ,


Any other suggestions?

The header already contained the acces token.