Get up and running with your first persona in under 5 minutes:

// Make this request from your server to keep your API key secure
const response = await fetch("https://api.anam.ai/v1/auth/session-token", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: `Bearer ${process.env.ANAM_API_KEY}`,
  },
  body: JSON.stringify({
    personaConfig: {
      name: "Alex",
      avatarId: "30fa96d0-26c4-4e55-94a0-517025942e18",
      voiceId: "6bfbe25a-979d-40f3-a92b-5394170af54b",
      brainType: "ANAM_GPT_4O_MINI_V1",
      systemPrompt: "You are a helpful customer service representative.",
    },
  }),
});
const { sessionToken } = await response.json();

Next Steps