Getting Started
Getting Started with the Enjin API. Learn how to manage your players, send and receive assets, set metadata, mint your assets and manage them.
As you start, it's very important that all of your admin and user data is parsed and stored by a secure server.
This means you will need a solid understanding of our Cloud API (GraphQL) to complete your secure integration.
If you haven't, we recommend going through the section "What is GraphQL?" and taking a look at our directory of all the available GraphQL queries and mutations to use:

Step 1: Getting Your Bearer Token

The first step is acquiring your bearer token. You can log into your account via our API using the following query:
1
query Login($email: String!, $password: String!) {
2
EnjinOauth(email: $email, password: $password) {
3
id
4
name
5
accessTokens
6
}
7
}
Copied!

Step 2: Getting Your Secret Key

You will need to acquire your secret key by following this query:
1
query GetAppSecret($id: Int!) {
2
EnjinApps(id: $id){
3
secret
4
}
5
}
Copied!

Step 3: Getting Your Access Token

Once you have retrieved the app secret from the previous step, you will need the access token, which you can retrieve by following this query:
IMPORTANT: Make sure to store your access token serverside!
1
query RetrieveAppAccessToken($appId: Int!, $appSecret: String!) {
2
AuthApp(id: $appId, secret: $appSecret) {
3
accessToken
4
expiresIn
5
}
6
}
Copied!
​
Last modified 1mo ago