Authentication

Authentication

POST /api/token with your existing V1 email and password. Send the returned token as Authorization: Bearer on subsequent requests. The V1 default token lifetime is 60 minutes; use its actual expiry and your existing deployment policy. V2 API keys do not authenticate these requests.

POST https://shipbuy.com/api/token
Content-Type: application/json

{"email":"<your-v1-email>","password":"<your-v1-password>"}

// Subsequent requests
Authorization: Bearer <token>

Integration notes

V1 uses the existing /api routes and a JWT Bearer token. It is separate from the new App, V2 API keys and the three Java bridge endpoints. Keep your existing deployment URL and credentials.