Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Headless REST APIs is not working in Liferay 7.1, is it supported here?
Hi,I have used Liferay 7.1 EE and CE both version for Headless Rest API, created a content on that site. After that tried to call the URL http://localhost:8080/o/headless-delivery/v1.0/sites/20126/structured-contents with Basic Authentication in Postman ( Site ID: 20126 ).
But getting 404 Not Found in Response. Please check the attached screenshot
As per Liferay Documentation, headless API should be supported in 7.1+.I am getting proper response in 7.2 but not in 7.1.Is there any extra configuration needed for Liferay 7.1 to enable the Headless API?
Waiting for the reply.Thanks in advance.
With regards,
Anuvab
But getting 404 Not Found in Response. Please check the attached screenshot
As per Liferay Documentation, headless API should be supported in 7.1+.I am getting proper response in 7.2 but not in 7.1.Is there any extra configuration needed for Liferay 7.1 to enable the Headless API?
Waiting for the reply.Thanks in advance.
With regards,
Anuvab
Attachments:
Is your OAuth2 configuration set? Any issue w/ CORS reported in the reply?
Thanks for your reply David.
As per the Liferay 7.1 Documentation (https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/making-authenticated-requests), we can use Basic or OAuth 2 authentication to call the service URL (even Unauthenticated request is also possible). I have used Basic Authentication here, same thing works when tried with 7.2 with no OAuth2 configuration.
I have not seen CORS related error in Errors or Headers. I am sharing another screenshot of Postman related to this, please check.
Waiting for your reply.
With Regards,
Anuvab
As per the Liferay 7.1 Documentation (https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/making-authenticated-requests), we can use Basic or OAuth 2 authentication to call the service URL (even Unauthenticated request is also possible). I have used Basic Authentication here, same thing works when tried with 7.2 with no OAuth2 configuration.
I have not seen CORS related error in Errors or Headers. I am sharing another screenshot of Postman related to this, please check.
Waiting for your reply.
With Regards,
Anuvab
Attachments:
Hi,
I am waiting for your reply. Kindly provide some solution for the same.
Regards,
Anuvab
I am waiting for your reply. Kindly provide some solution for the same.
Regards,
Anuvab
What version of 7.1 EE are you using? Headless is available from Fixpack 10 onwards.
Thank you Javier for the reply. It may be the case. Is it mentioned anywhere in Liferay Documentation?
I don't think so, sadly, but I guess it's documented in the fixpack changelog releases and in some blog posts: https://liferay.dev/blogs/-/blogs/headless-apis-for-decoupled-liferay-platform- or https://liferay.dev/forums/-/message_boards/message/113539707
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™