Authenticate using your API key to obtain a JWT bearer token for accessing protected endpoints.
Rate Limit: 10 requests / minute
Note: The returned token expires after 30 minutes. You'll need to call this endpoint again to get a new token.
- Staging Environmenthttps://staging.corksy.io/connect-api/v1/v1/auth/public/login
- Production Environmenthttps://connect-api.corksy.io/v1/auth/public/login
curl -i -X POST \
https://staging.corksy.io/connect-api/v1/v1/auth/public/login \
-H 'Content-Type: application/json' \
-d '{
"apiKey": "your-api-key-here"
}'Authentication successful
Response
{ "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", "expiresIn": 1800000 }