# Wix Headless: Error while creating auth code for oauth

**URL:** <https://forum.wixstudio.com/t/wix-headless-error-while-creating-auth-code-for-oauth/66822>\
**Category:** Ask the community\
**Tags:** wix-headless, code, wix-studio, question, wix\
**Created:** [January 2, 2025, 7:24am UTC](https://forum.wixstudio.com/t/wix-headless-error-while-creating-auth-code-for-oauth/66822 "2025-01-02T07:24:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user4512](https://avatars.discourse-cdn.com/v4/letter/u/e36b37/32.png) [@user4512](https://forum.wixstudio.com/u/user4512)\
**Post date:** [January 2, 2025, 7:24am UTC](https://forum.wixstudio.com/t/wix-headless-error-while-creating-auth-code-for-oauth/66822/1 "2025-01-02T07:24:43Z")

</div>

**Question:**  
I am having error 404 when I’m trying to generate auth code for oauth.

**Product:**  
Wix Developer

**What are you trying to achieve:**  
I want to use wix headless api for login purpose, when I’m trying to generate auth code it’s showing 404 page.

**What have you already tried:**  
I have already created custom app, generated token, app id and app secret

 ![image](https://us1.discourse-cdn.com/wix/original/3X/e/7/e7a27b705b229ddf3137ba371468ba47814b5025.jpeg)
