Documentation

Authentication

PromptMan uses JWT-based Bearer Token authentication. All API requests (except registration and login) require a token in the Authorization header.

Get a Token

bash
curl -X POST https://prompt.solokit.run/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","password":"yourpass"}'
json
{
  "data": {
    "user": { "id": "usr_xxx", "email": "you@example.com", "name": "Jane" },
    "token": "eyJhbGc...",
    "apiToken": "ph_64charshex..."
  }
}

Use the Token in Requests

bash
curl https://prompt.solokit.run/api/prompts \
  -H "Authorization: Bearer ph_your_api_token"

CAUTION

Keep your API Token secure. It follows the format ph_ + 64 hex characters. Never commit it to a repository or expose it in frontend code.

Continue Reading