Skip to main content
The dottxt API uses bearer-token authentication.

Header format

Authorization: Bearer <DOTTXT_API_KEY>

Environment variable

export DOTTXT_API_KEY="sk-dottxt-..."

Quick connection check

curl https://api.dottxt.ai/v1/models \
  -H "Authorization: Bearer $DOTTXT_API_KEY"
If the key is valid, the API returns a 200 response with a data array of accessible models.

Next steps