Introduction
API Key Request
Adding the API key to your header to all your requests will enable access to all Utiliti API endpoints.
Creating an API key
1. Create an Application inside the console.
2. Inside the Application, in the API Key tab, create an API Key.
3. Use this API Key by setting the X-API-key
field in the headers of your request.
const response = await fetch('https://api.utiliti.ai/wallets', { method: 'GET', headers: { 'Content-Type': 'application/json', 'X-API-key': '<YOUR_API_KEY_HERE>', }, })
SDK coming soon...
using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.utiliti.ai/wallets"), Headers = { { "accept", "application/json" }, { "X-API-key", "<YOUR_API_KEY_HERE>" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }
curl --request GET \ --url https://api.utiliti.ai/wallets \ --header 'X-API-key: <YOUR_API_KEY_HERE>' \ --header 'accept: application/json'
$python -m pip install requests --- import requests url = "https://api.utiliti.ai/wallets" headers = { "accept": "application/json", "X-API-key": "<YOUR_API_KEY_HERE>" } response = requests.get(url, headers=headers) print(response.text)
You're done!
You can now use your API key inside your request headers to sucessfully interact with the Utiliti API!