Skip to main content

API


Quickstart

🚀 API v1 is now live! We're continuously enhancing and expanding API capabilities for all models.

How to Get Your API Token

  1. From the sidebar, select ➜ Developer
  2. Navigate to the API Tokens section
  3. Click ➜ Create
  4. Give your token a descriptive name (e.g., "Production Server")
  5. Copy the token immediately (it's only shown once)
  6. Store it securely in your environment variables

Using Your Token

Include the token in the Authorization header of all requests:

Authorization: Bearer YOUR_API_TOKEN

Security Best Practices

  • Never commit tokens to version control
  • Use environment variables (e.g., BABYSEA_API_TOKEN)
  • Rotate tokens regularly
  • Use different tokens for development and production
  • Revoke tokens immediately if compromised