In DataCater, you can use your username and password (default: admin:admin) for authentication.
API requests are authenticated using the Bearer Auth scheme. You must include the access token in the header of all API requests that you perform.
Access tokens are time-restricted and must be re-generated from time to time. Please make sure that you always have a valid token.

Generate access token

Use your login credentials (default: admin:admin) to generate a time-restricted access token that is needed for authenticating API calls.
Pass your credentials to the endpoint either (1) using HTTP Basic authentication or (2) combine your username and password using a : (colon), base64-encode the resulting string, and include the encoded string in the Authorization header as follows: Authorization: Basic {base64-encoded-string}.
That means, assuming that your DataCater installation is available under http://localhost:8080 and you are using the default login credentials admin:admin, you can generate an access token using one of the following curl commands:
curl -XPOST -uadmin:admin http://localhost:8080/api/v1/authentication
curl -XPOST -H"Authorization: Basic YWRtaW46YWRtaW4=" http://localhost:8080/api/v1/authentication
Last modified 3mo ago