Secure access to maritime data and ship operations with API keys and OAuth 2.0 authentication.
curl -X GET "https://api.shipwrecked.co/v1/vessels/12345" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
curl -X POST "https://api.shipwrecked.co/oauth/token" \ -u "CLIENT_ID:CLIENT_SECRET" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "grant_type=client_credentials"
Returns a JSON web token (JWT) which should be used in the Authorization header:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...