How to make Elasticsearch REST calls with Postman given nothing but a Cloud ID and API Key?

Hello, if I use the Elasticsearch SDK I can make API calls using nothing but a Cloud ID and API Key - how can I do the same with Postman, which requires a URL?

Presumeably the SDK is converting the Cloud ID to a URL, but how could I do the same with Postman?

You'd have to have a pre request script in postman where you take the cloud id, base64 decode it and build the URL based on the components available in the cloud id

I'm not aware of any other way

Thanks had no idea it was just a URL!

What do I do with the API key?

1 Like

Worked it out, has to be sent as Authorization: ApiKey yourkey

1 Like