Authentication

You'll need to authenticate your requests to access any of the endpoints in the Virtoshi API. In this guide, we'll look at how authentication works.

Authorization with bearer token

When establishing a connection with Virtoshi, you will need your API key — you will find it in the Account » Manage API Key. Here's how to add the API key to the request header using cURL:

Example request with bearer token

curl https://api.virtoshi.com/v1/status -H "Authorization: Bearer YOUR_API_KEY_HERE"

Always keep your API key safe and reset it if you suspect it has been compromised.

Using an SDK

If you use one of our official SDKs, you won't have to worry about any of the above — fetch your API key from the Account » Manage API Key, and the client library will take care of the rest.

Was this page helpful?