Authentication

Creating an API Key

To get started with the SocketLabs API, you’ll first need to create an API key. This
can be done on the API Key Management page in the SocketLabs Performance
Dashboard.

It is important to keep your API key secure because it can be used to modify features for your SocketLabs account.

Endpoints

All calls to the SocketLabs API need to start with the appropriate base URL:

https://api.socketlabs.com/

Bearer Token

API calls to the SocketLabs API are authenticated using the API key that you generated. Authenticate your calls to the SocketLabs API using the Authorization header with the Bearer authentication scheme. That should look like:

Authorization: Bearer YOUR-API-KEY

Example Request

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, “https: //api.socketlabs.com/v2/ip-allocation?” +
  “pageNumber = 0 & pageSize = 5 & sortField = IpAddress & sortDirection = asc” + “ & flters = IpAddress = like: 10.28 .100”);
request.Headers.Add(“Authorization”, “Bearer < token > ”);
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());

Now let's go create an IP Pool 

Other Resources