Facing issues in consume Streaming API using PHP and Curl

We have created a stream api key and trying to consume Streaming API via postman but we got error as below.

We have encoded Stream api key by base64(RFC4648) and passing a query parameter as timepoint(also tried without timepoint). but we are getting error as below.

{

"error": "Invalid Authorization",

"type": "ch:service"

}

Any assistance would be greatly appreciated.

Kind Regards,
Ashish

Hi Ashish,
Please see (unofficial) Obtaining a key | CH Guide for how to authenticate on the streaming API.

You need to have a streaming API key which you put in the Authorization header (base64 encoded with a trailing colon).

On the authorisation tab of postman, it should look like this:

2 Likes