---
title: "Infraforge API explained"
description: "Learn what you can manage with the Infraforge API, how to authenticate requests, and what limitations to be aware of when building an integration."
url: https://help.salesforge.ai/en/articles/10333700-infraforge-api-explained
collection: "Infraforge"
updated: 2026-11-30
language: en
---

# Infraforge API explained

Learn what you can manage with the Infraforge API, how to authenticate requests, and what limitations to be aware of when building an integration.

The Infraforge API lets you manage your Infraforge infrastructure programmatically instead of doing everything manually in the Infraforge dashboard.  
  
You can use the API to manage domains, mailboxes, workspaces, IPs, credit balance settings, and mailbox analytics. It also supports domain purchases and transfers, mailbox provisioning, DNS management, and exports to Salesforge or other platforms.  
  
The API uses account-wide API keys, with full-access and read-only permission levels. There is currently no enforced API rate limit, although some endpoints have individual request limits.

## Base URL

All API requests are made against:

```javascript
https://api.infraforge.ai/public
```

The API uses HTTPS and requires authentication.  
  
You can find the full API reference in the [Infraforge Swagger documentation](https://api.infraforge.ai/public/swagger/index.html#/), including available endpoints, parameters, request formats, and response models.

## How do I get an API key?

You can generate an API key from your Infraforge dashboard.  
  
API keys can have two permission levels:

-   **Full access:** Allows the key to perform available read and write operations.
    
-   **Read-only:** Restricts the key to read operations and a limited number of additional endpoints.
    

API keys are account-wide, not workspace-specific. A key can access resources across all workspaces belonging to your account.  
  
**Important:** Keep your API key secure. Anyone with access to it may be able to access or manage your Infraforge resources, depending on its permission level.  
  
API keys cannot currently be created, rotated, or revoked through the public API. These actions must be performed through the dashboard.

## How do I authenticate API requests?

Include your API key in the `Authorization` header of every request.  
  
Use the raw API key, without a `Bearer` prefix:

```javascript
Authorization: YOUR_API_KEY
```

Do not add `Bearer` before the key, as this is not the authentication format used by the Infraforge API.

## What can you do with the Infraforge API?

### Manage domains

The API allows you to manage your domains and automate domain-related operations.  
  
You can:

-   Check domain availability, individually or in bulk
    
-   Generate alternative domain suggestions
    
-   Purchase domains
    
-   Transfer existing domains to Infraforge
    
-   List domains and update domain information
    
-   Enable or disable auto-renewal, individually or in bulk
    
-   Retrieve and update DNS records
    
-   Update DNS settings in bulk
    
-   Configure domain forwarding
    
-   Purchase or remove domain masking SSL
    
-   Retrieve domain renewal prices
    
-   Renew eligible domains
    
-   Transfer domains out of Infraforge
    
-   Transfer domains between workspaces
    

**A few things to keep in mind:**

-   Domain transfers into Infraforge use a nameserver-based process.
    
-   Domain renewals are not available for organization accounts or domains that were transferred into Infraforge.
    
-   Domain masking SSL requires the domain to be active and have domain forwarding configured. It is billed quarterly.
    
-   Transferring a domain to another workspace does not transfer its mailboxes. DNS is synchronized with the destination workspace.
    

### Manage mailboxes

You can use the API to manage your Infraforge mailboxes without manually accessing the dashboard.  
  
Available operations include:

-   List and retrieve mailboxes
    
-   Purchase mailboxes
    
-   Generate mailbox name suggestions
    
-   Update mailbox settings
    
-   Delete mailboxes
    
-   Bulk forward mailboxes
    
-   Retrieve available pre-warmed mailboxes
    
-   Purchase pre-warmed domains
    
-   Export mailboxes
    
-   Adjust your account's mailbox top-up amount
    

**Generating vs. purchasing mailboxes**

These are two separate operations:

-   **Generate:** Returns suggested mailbox names. It does not purchase mailboxes, use mailbox slots, or create mailbox records.
    
-   **Buy:** Actually purchases the mailboxes. This operation is subject to your available mailbox capacity and applicable billing requirements.
    

**Exporting mailboxes**

You can export mailboxes in two ways:

-   Export mailboxes to Salesforge using the dedicated Salesforge integration.
    
-   Export mailboxes as a CSV file for use with other supported platforms.
    

This allows you to automate mailbox provisioning and move your mailboxes into your preferred sending platform.

**Pre-warmed mailboxes**

The API lets you check available pre-warmed mailboxes and purchase pre-warmed domains.  
  
Pre-warmed domains support two mailboxes per domain. Purchasing them requires an active paid subscription.

### Manage workspaces

The API also supports workspace management.  
  
You can:

-   List workspaces
    
-   Create new workspaces
    
-   Update workspace information
    
-   Delete workspaces
    
-   Transfer domains between workspaces
    
-   Retrieve eligible IPs for a workspace
    
-   Manage the core domain associated with an IP
    

**Important:** Deleting a workspace can affect its associated domains and IP configuration. Depending on the account's workspace and IP configuration, domains may be soft-deleted or an IP may be detached and deallocated if the workspace is the last one using it.  
  
Make sure you understand the potential impact before deleting a workspace.

### Manage IPs

Infraforge provides API endpoints for managing IP-related settings.  
  
You can:

-   Retrieve available core domains (domains not currently assigned as the relay host domain of any IP)
    
-   Update an IP's core domain
    
-   Retrieve IPs eligible for a workspace
    
-   Delete workspace IPs
    

An IP's **core domain** is the domain used as its SMTP relay hostname.  
  
There are some restrictions when managing IPs:

-   An IP's core domain cannot be changed to a domain already assigned as another IP's core domain.
    
-   Only IPs shared across at least two of your workspaces are returned by the eligible-IPs endpoint.
    
-   You cannot delete your account's only IP.
    

When deleting an IP, workspaces using it are reassigned to the next available IP, and the deleted IP's core domain is detached.

### Retrieve mailbox analytics

The API provides mailbox analytics that you can use to monitor sending activity and performance.  
  
You can retrieve:

-   Mailbox activity
    
-   Bounced emails
    
-   Mailbox recipients
    
-   Sending IP information
    
-   Analytics summaries across mailboxes in a workspace
    

You can use these endpoints to build custom reporting tools, monitor mailbox performance, and track sending activity.  
  
**Analytics limitations:**

-   Available reporting periods include 24 hours, 7 days, 30 days, 90 days, 1 year, and all available data.
    
-   Analytics pagination is limited, with page sizes depending on the endpoint.
    
-   Analytics data is only available from October 28, 2026 onward. Requesting an earlier date range will not return data from before that date.
    

### Manage credit balance

The API includes endpoints for managing your account's credit balance settings.  
  
You can:

-   Retrieve credit balance settings
    
-   Create a credit balance
    
-   Update existing credit balance settings
    

Credit balance functionality may not be available for all accounts. If your account cannot access these endpoints, you may receive a 404 response.

### Retrieve postal code details

The API also includes an endpoint for retrieving postal code information.  
  
It returns the postal code format or example associated with a country. This can help validate postal codes before submitting domain purchase or transfer requests.

## Are there any API rate limits?

There is currently no enforced rate limit on the Infraforge public API.  
  
However, some endpoints have individual request limits. For example:

-   Bulk domain availability checks support up to 100 domains per request.
    

-   Pre-warmed domain listings support up to 100 results per request.
    

We recommend avoiding excessive concurrent requests or large bursts of API traffic, as these may cause intermittent errors.  
  
API limits may change as the platform evolves.  
  
Other bulk operations may not have a predefined maximum number of items per request. We recommend using reasonable batch sizes rather than sending very large requests.

## What can't I manage through the public API?

Not every Infraforge dashboard feature is currently available through the public API.  
  
The following operations are currently dashboard-only:

-   Creating, rotating, and revoking API keys
    
-   Inviting team members and managing user roles
    
-   Managing billing information and payment methods
    
-   Updating mailbox usernames (local parts)
    
-   Purchasing or managing Masterbox
    
-   Bulk renaming mailboxes
    
-   Managing custom tracking domains
    
-   Exporting mailboxes directly to Warmforge
    

Some mailbox settings, such as first and last names, signatures, passwords, and forwarding, can be updated through the API. However, changing the mailbox username itself is not supported.

## Important things to know when using the API

A few additional limitations are worth keeping in mind when building an integration:

-   **Bulk mailbox deletion:** There is no public bulk-delete endpoint. Mailboxes must be deleted individually through the public API.
    
-   **Bulk DNS updates:** Bulk DNS updates are processed asynchronously. A successful API response means the request was accepted, but it does not necessarily confirm that every DNS update was completed successfully.
    
-   **Domain transfers:** Transferring a domain between workspaces does not move its associated mailboxes.
    
-   **API key permissions:** API keys are account-wide, so they cannot be restricted to a particular workspace.
    
-   **Mailbox generation:** Generating mailbox names does not purchase or create mailboxes. You must use the purchase endpoint to provision them.
    

## Where can I find the API documentation?

You can find the full Infraforge API documentation in the [Infraforge Swagger documentation](https://api.infraforge.ai/public/swagger/index.html#/).  
  
There you can explore all available endpoints, review their parameters, see the required request formats, and inspect the response models.  
  
If you're building an integration with Infraforge, we recommend using the Swagger documentation as the source of truth for the current endpoint structure and parameters.

## When should you use the Infraforge API?

The Infraforge API is useful if you want to automate infrastructure management or connect Infraforge to your own tools and systems.  
  
Common use cases include:

-   Agencies managing infrastructure across multiple clients
    
-   Automatically purchasing and provisioning domains and mailboxes
    
-   Managing multiple workspaces programmatically
    
-   Automating DNS updates and domain transfers
    
-   Exporting newly created mailboxes to Salesforge or other platforms
    
-   Building custom mailbox analytics and reporting tools
    
-   Monitoring mailbox activity and bounce rates
    

If you only manage a small number of domains and mailboxes, the Infraforge dashboard may be sufficient. The API becomes especially useful when you need automation, integrations, or custom workflows.
