Skip to main content
Welcome to The Auth API documentation. Before you start, create your free account here: https://app.theauthapi.com. You will need the follow these steps to make a successful request:

Essential steps before doing anything else:

  1. Create an account
  2. Create a new Project (this could be the name of your API)
  3. Generate a new โ€˜Access Keyโ€™ (sometimes referred to as a root key)
  4. Copy your โ€˜Access Keyโ€™ and Project ID somewhere safe!

Letโ€™s create your fist key

1

Create a key

Open your favourite terminal, copy this API creation code into it. Donโ€™t forget to replace REPLACE_WITH_YOUR_PROJECT_ID and REPLACE_WITH_YOUR_ACCESS_KEY_FOUND_IN_YOUR_ACCOUNT with your actual values!
Hereโ€™s an example of all the properties you can post to create a key:
To automatically generate a key UID, you can remove the โ€˜keyโ€™ field.
2

Server Response

You should see a response similar to this:
3

Now validate the key

Run this CURL command in your terminal to validate the key is valid. Donโ€™t forget to replace the REPLACE_WITH_YOUR_ACCESS_KEY_FOUND_IN_YOUR_ACCOUNT and YOUR_API_KEY!
4

Server Response

You should see a response similar to this:

What next?

Now you know how to create an API key, you can start to implement it into your API. Here are some tools to help you get started:

Build a express middleware in 2 minutes

Using node?

Install our Node TypeScript SDK

PHP, Go, Python etc

Checkout our code samples