🔶Setup
API Interface
In this documentation, we will utilize axios to interface with the ExperAI api.
import axios from 'axios';
const key = process.env.BACKEND_KEY;
const backend = axios.create({
baseURL: 'https://backend.experai.com/api',
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${key}`,
}
});
export default backend;
The BACKEND_KEY should be stored in your env file. This backend file may be placed anywhere in the code and called upon once needed.
To get your keys, join our discord and connect with the @Seeker
Last updated