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

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


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

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: //” +
  “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);
Console.WriteLine(await response.Content.ReadAsStringAsync());

Now let's go create an IP Pool 

Other Resources