---
title: Authentication
description: Creating an API Key
---

[Skip to content](https://help.socketlabs.com/docs/email/v2/authentication#main-content)

English

Show submenu for translations

[Contact us](https://help.socketlabs.com/docs/kb-tickets/new?hsLang=en)

[![SocketLabs logo](https://help.socketlabs.com/hs-fs/hubfs/Logos/SocketLabs%20logo.png?width=243&height=70&name=SocketLabs%20logo.png)](https://www.socketlabs.com/)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Contact us](https://help.socketlabs.com/docs/kb-tickets/new)

 SocketLabs is here to help!

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.socketlabs.com/docs?hsLang=en)
2. [Complex Sender](https://help.socketlabs.com/docs/complex-sender?hsLang=en)

# 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](https://help.socketlabs.com/docs/email/v2/creating-ip-pools?hsLang=en)

### Other Resources

- [Creating IP Pools](https://help.socketlabs.com/docs/email/v2/creating-ip-pools?hsLang=en)
- [Creating Subaccounts](https://help.socketlabs.com/docs/email/v2/creating-subaccounts?hsLang=en)
- [Subaccount Custom Bounce Domain Authentication](https://help.socketlabs.com/docs/email/v2/subaccount-custom-bounce-domain-authentication?hsLang=en)
- [Subaccount DKIM Authentication](https://help.socketlabs.com/docs/email/v2/subaccount-dkim-authentication?hsLang=en)
- [Subaccount Engagement Tracking](https://help.socketlabs.com/docs/email/v2/subaccount-engagement-tracking?hsLang=en)
- [Injection API](https://help.socketlabs.com/docs/email/v2/injection-api?hsLang=en)
- [SMTP](https://help.socketlabs.com/docs/email/v2/smtp?hsLang=en)
- [Account Level Event Webhook](https://help.socketlabs.com/docs/email/v2/account-level-event-webhook?hsLang=en)

- [Fundamentals](https://help.socketlabs.com/docs/fundamentals?hsLang=en#main-content)

    - [StreamScore](https://help.socketlabs.com/docs/fundamentals?hsLang=en#streamscore)
    - [Reports](https://help.socketlabs.com/docs/fundamentals?hsLang=en#reports)
    - [Frequently Asked Questions](https://help.socketlabs.com/docs/fundamentals?hsLang=en#frequently-asked-questions)
- [Advanced](https://help.socketlabs.com/docs/advanced?hsLang=en#main-content)

    - [Security](https://help.socketlabs.com/docs/advanced?hsLang=en#security)
- [DNS Authentication](https://help.socketlabs.com/docs/dns-authentication?hsLang=en#main-content)

    - [DKIM](https://help.socketlabs.com/docs/dns-authentication?hsLang=en#dkim)
    - [SPF and Custom Bounce Domain](https://help.socketlabs.com/docs/dns-authentication?hsLang=en#spf-and-custom-bounce-domain)
- [Deliverability](https://help.socketlabs.com/docs/deliverability?hsLang=en)
- [For Developers](https://help.socketlabs.com/docs/for-developers?hsLang=en#main-content)

    - [Event Webhooks](https://help.socketlabs.com/docs/for-developers?hsLang=en#event-webhooks)
- [Integrations](https://help.socketlabs.com/docs/integrations?hsLang=en#main-content)

    - [Languages and Frameworks](https://help.socketlabs.com/docs/integrations?hsLang=en#languages-and-frameworks)
    - [Mail Servers](https://help.socketlabs.com/docs/integrations?hsLang=en#mail-servers)
    - [Web Clients and Plug-ins](https://help.socketlabs.com/docs/integrations?hsLang=en#web-clients-and-plug-ins)
    - [Mail Clients](https://help.socketlabs.com/docs/integrations?hsLang=en#mail-clients)
- [Marketing Tools](https://help.socketlabs.com/docs/marketing-tools?hsLang=en#main-content)

    - [Tips and Tricks](https://help.socketlabs.com/docs/marketing-tools?hsLang=en#tips-and-tricks)
- [Troubleshooting](https://help.socketlabs.com/docs/troubleshooting?hsLang=en#main-content)

    - [SocketLabs Inbound SMTP Gateway Errors](https://help.socketlabs.com/docs/troubleshooting?hsLang=en#socketlabs-inbound-smtp-gateway-errors)
    - [SocketLabs Outbound SMTP Errors](https://help.socketlabs.com/docs/troubleshooting?hsLang=en#socketlabs-outbound-smtp-errors)
- [Spotlight Email Analytics](https://help.socketlabs.com/docs/spotlight-email-analytics?hsLang=en)
- [Hurricane MTA](https://help.socketlabs.com/docs/hurricane-mta?hsLang=en#main-content)

    - [Advanced Hurricane Usage](https://help.socketlabs.com/docs/hurricane-mta?hsLang=en#advanced-hurricane-usage)
    - [Upgrading Hurricane](https://help.socketlabs.com/docs/hurricane-mta?hsLang=en#upgrading-hurricane)
    - [Troubleshooting](https://help.socketlabs.com/docs/hurricane-mta?hsLang=en#troubleshooting)
    - [Hurricane Maintenance](https://help.socketlabs.com/docs/hurricane-mta?hsLang=en#hurricane-maintenance)
    - [Getting Started with Hurricane](https://help.socketlabs.com/docs/hurricane-mta?hsLang=en#getting-started-with-hurricane)
    - [Basic Hurricane Usage](https://help.socketlabs.com/docs/hurricane-mta?hsLang=en#basic-hurricane-usage)
- [Complex Sender](https://help.socketlabs.com/docs/complex-sender?hsLang=en)

[![Chill listening crop-3](https://help.socketlabs.com/hs-fs/hubfs/Logos/Logo_Favicon%20-%20large%20-%20cropped.png?width=24&height=24&name=Logo_Favicon%20-%20large%20-%20cropped.png "Chill listening crop-3")](https://www.socketlabs.com)

<https://www.facebook.com/socketlabs/> <https://twitter.com/socketlabs> <https://www.linkedin.com/company/socketlabs-inc./>

Copyright © 2026, SocketLabs LLC