> For the complete documentation index, see [llms.txt](https://timechain.gitbook.io/neucron/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://timechain.gitbook.io/neucron/swagger.md).

# Swagger

1. Go to the Neucron [Swagger UI](https://dev.neucron.io/docs)
2. Scroll to the "Auth" section to find the `/auth/signup` API inside it
3. Click on it to open it and it will look like the below image

<figure><img src="https://3379679598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRtmqT12EH2BWNpLihrdD%2Fuploads%2F9Y183vXnkpn0mdZrPdFP%2Fimage.png?alt=media&#x26;token=386ea75b-bbf5-4a61-ba8c-5c1806c5331e" alt=""><figcaption></figcaption></figure>

4. Click "Try it out" to use the signup API

<figure><img src="https://3379679598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRtmqT12EH2BWNpLihrdD%2Fuploads%2F3U2jiFZ07zgrq7EubeSW%2Fimage.png?alt=media&#x26;token=75e65f7c-e9cc-40e5-ac77-184067c04ab7" alt=""><figcaption><p>Sign Up Swagger</p></figcaption></figure>

5. Enter your email and password by replacing the "string" value with your own email and password
6. Click the "EXECUTE" button in blue
7. Your account would be created with your email along with a default wallet set up for you. The image below shows a sample response. This response shows your
   1. `userid` used to identify you uniquely
   2. \`walletid\` for the default wallet created for you
   3. `wallet-address` for a blockchain address of that wallet
   4. \`public key\` for a public key of that wallet
   5. \`access token\` used to authorize yourself for calling the protected endpoints

<figure><img src="https://3379679598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRtmqT12EH2BWNpLihrdD%2Fuploads%2F0zXTRPavH5x1zoYv4KAl%2Fimage.png?alt=media&#x26;token=67ddaaa5-5abc-4d08-b40a-c2c8cf6e66e6" alt=""><figcaption><p>Response on calling Signup</p></figcaption></figure>

8. Copy the `access_token` and scroll up to the top part of the page where the `Authorize` button is clicked as shown below

<figure><img src="https://3379679598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRtmqT12EH2BWNpLihrdD%2Fuploads%2FmZcLqCjeHeJOYSXdytK6%2Fimage.png?alt=media&#x26;token=7705c42b-c4f8-4145-bc57-13d4ef449992" alt=""><figcaption><p>Authorize</p></figcaption></figure>

<figure><img src="https://3379679598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRtmqT12EH2BWNpLihrdD%2Fuploads%2FsrxFZNkWC3wUs9O2jSc1%2Fimage.png?alt=media&#x26;token=2f203f8e-3e3f-41a1-be1b-046a8994e789" alt=""><figcaption><p>Authorize Popup</p></figcaption></figure>

9. Paste the Access Token that you had copied, in the box here
10. Click Authorize

<figure><img src="https://3379679598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRtmqT12EH2BWNpLihrdD%2Fuploads%2FUcPZOQxzwUqej450BSYF%2Fimage.png?alt=media&#x26;token=8a649987-562b-4031-9c21-619bbb290a36" alt=""><figcaption><p>Authorize</p></figcaption></figure>

<figure><img src="https://3379679598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRtmqT12EH2BWNpLihrdD%2Fuploads%2FLapZS7IzOFYvtrbMsmPl%2Fimage.png?alt=media&#x26;token=dbebca3b-f2c2-47c1-a2a8-24d75fe040f1" alt=""><figcaption><p>Close Authorize Popup</p></figcaption></figure>

11. You will now be able to use any protected API which has a lock at the end of it

<figure><img src="https://3379679598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRtmqT12EH2BWNpLihrdD%2Fuploads%2FdHwNcJyTrJUTs9nrmHZV%2Fimage.png?alt=media&#x26;token=b7547968-7162-4f52-ac20-0278502417c7" alt=""><figcaption><p>Transaction API</p></figcaption></figure>

12. If you have already signed up before, then you can login using `auth/login` which returns the \`access\_token\` which can be used to Authorize the same way again.

<figure><img src="https://3379679598-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRtmqT12EH2BWNpLihrdD%2Fuploads%2FRR4JazURDHrgOnFa2Gwy%2Fimage.png?alt=media&#x26;token=5ae3aad8-3e09-4387-8bce-f41544d7fd7b" alt=""><figcaption></figcaption></figure>

Happy Coding!
