Log in to the COS console and select Bucket List.
If you don't have a bucket, you can select Create Bucket to create one.
If you already have a bucket, you can select it and view its endpoint.
To query the key, click API Key on the left sidebar.
Click Cloud API Key.