Authentication
You'll need to authenticate your requests to access any of the endpoints in the Regia API.
Token authentication
Token authentication is the most common way to authenticate with the Regia API. It's a simple way to authenticate your requests, and it's the recommended way to authenticate with the API. Here's how to add the token to the request header using cURL:
Example request with token
curl https://api.regia.cloud/status \
-H "Authorization: Bearer {token}"
Always keep your token 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 access token, and the client library will take care of the rest.