Documentation
Authentication

API Key

You can authenticate with the API through three different methods:

  • Authorization Header Bearer LOGIN_FOR_FREE_API_KEY
  • Query Param ?apiKey=LOGIN_FOR_FREE_API_KEY
  • Cookie JWT Token

Authorization Header


curl -H "Authorization: Bearer LOGIN_FOR_FREE_API_KEY" https://brands.as/api


const headers = { Authorization: 'LOGIN_FOR_FREE_API_KEY' }
const data = await fetch('https://brands.as/api', { headers })

Query Param


GET https://brands.as/api?apiKey=LOGIN_FOR_FREE_API_KEY

Cookie JWT Token

If you're logged into the website, then you can visit the API in your browser and it will automatically authenticate you. To have an optimal experience, make sure that you have a JSON viewer plugin for your browser.

https://brands.as/api

{
"api": {
"name": "brands.as",
"description": "⚡️ AI-powered Brand Generation API",
"url": "https://brands.as/api",
"account": "https://brands.as/account",
"docs": "https://brands.as/docs",
"site": "https://brands.as"
},
"examples": {}
}