Authentication
Endpoint | POST /v1/auth/login |
Request | https://api.bytebase.com/#model/loginrequest |
Response | https://api.bytebase.com/#model/loginresponse |
Service Account
A service account is a non-human account used by applications, scripts, or services to access the Bytebase API. The service account follows the same permission model as the normal user account. The only exception is service account can't be added to a group as it's an anti-pattern.
In Users & Groups under Security & Policy section, Add User on the upper-right. Choose Service Account Type, fill in the email and Confirm. Then you can see your service account in the list. Copy Service Key right away.
Login to fetch the token
You need to obtain the exchange token before calling the API.