> This page is for Developers.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.emnify.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.emnify.com/_mcp/server.

# List IP firewall profiles

GET https://cdn.emnify.net/api/v1/ip_firewall_profile

**Required permissions** Beta [Learn more](/developers/api-guidelines/permissions#how-permissions-work)

`IpFirewallProfile` + `List`

*Roles:* Administrator

Returns a list of all IP firewall profiles within the organization.

Each item includes metadata and counts of attached service profiles and devices.
The profile rule content isn't included in list responses.
Use the [Get an IP firewall profile](/developers/api/ip-firewall-profile/ip-firewall-profile-get-by-id) endpoint to retrieve the full profile content.

Reference: https://docs.emnify.com/developers/api/ip-firewall-profile/ip-firewall-profile-get-all

## Authentication

- `Authorization` header (bearer token, required) — An `auth_token` should be provided to authenticate a session. To obtain an `auth_token`, see the [`/api/v1/authenticate` **POST** request](/developers/api/authentication/authenticate).

## Response

### 200

IP firewall profiles successfully listed.

- `list of ApiV1IpFirewallProfileGetResponsesContentApplicationJsonSchemaItems`

## Errors

### 401 Unauthorized Error

Missing or invalid Authorization header.

- `error_code` (integer, optional)
- `error_token` (string, optional)
- `message` (string, optional)
- `errors` (list of ApiV1IpFirewallProfileGetResponsesContentApplicationJsonSchemaErrorsItems, optional) — sub error descriptions

### 403 Forbidden Error

User doesn't have permission to list IP firewall profiles, or the organization doesn't subscribe to the IP firewall.

- `error_token` (string, required)
- `message` (string, required)
- `error_code` (integer, optional)
- `errors` (list of ApiV1IpFirewallProfileGetResponsesContentApplicationJsonSchemaErrorsItems, optional) — sub error descriptions

## Types

### ApiV1IpFirewallProfileGetResponsesContentApplicationJsonSchemaItems

- `id` (integer, optional) — Unique identifier of the IP firewall profile.
- `name` (string, optional) — Name of the IP firewall profile.
- `description` (string, optional) — Description of the IP firewall profile.
- `created` (string, optional) — Timestamp when the profile was created.
- `last_updated` (string, optional) — Timestamp when the profile was last modified.
- `last_uploaded` (string, optional) — Timestamp when the profile rules were last uploaded.
- `attached_service_profile_count` (integer, optional) — Number of service profiles using this firewall profile.
- `attached_device_count` (integer, optional) — Number of devices using this firewall profile.

### ApiV1IpFirewallProfileGetResponsesContentApplicationJsonSchemaErrorsItems

## Examples

**Response**

```json
[
  {
    "id": 15,
    "name": "example-ip-firewall-profile",
    "description": "Example IP firewall profile",
    "created": "2026-03-09T09:02:20Z",
    "last_updated": "2026-03-09T09:02:20Z",
    "last_uploaded": "2026-03-09T09:02:20Z",
    "attached_service_profile_count": 15,
    "attached_device_count": 50
  }
]
```

**SDK Code**

```python List IP Firewall Profiles
import requests

url = "https://cdn.emnify.net/api/v1/ip_firewall_profile"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript List IP Firewall Profiles
const url = 'https://cdn.emnify.net/api/v1/ip_firewall_profile';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go List IP Firewall Profiles
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://cdn.emnify.net/api/v1/ip_firewall_profile"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby List IP Firewall Profiles
require 'uri'
require 'net/http'

url = URI("https://cdn.emnify.net/api/v1/ip_firewall_profile")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java List IP Firewall Profiles
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://cdn.emnify.net/api/v1/ip_firewall_profile")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php List IP Firewall Profiles
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://cdn.emnify.net/api/v1/ip_firewall_profile', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp List IP Firewall Profiles
using RestSharp;

var client = new RestClient("https://cdn.emnify.net/api/v1/ip_firewall_profile");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift List IP Firewall Profiles
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://cdn.emnify.net/api/v1/ip_firewall_profile")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```