Skip to main content

Authentication

API Key authentication and credential setup for the Security API

The Security API uses Bailian API Key authentication. All requests carry the API Key via an HTTP header:
Authorization: Bearer <your-api-key>

Get credentials

1

Activate Bailian and open the console

Open the Bailian console, sign in with your Alibaba Cloud account, and activate the service.
2

Create an API Key

Create and copy an API Key on the API-KEY page; it starts with sk-.
API Keys carry account-level permissions. Keep them secure and never share them publicly or commit them to a code repository.
Once configured, start with Query Agent Assets.