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

# List API keys

GET https://api.ideogram.ai/v2/account/api-keys

Lists the API keys in your organization. Key material is redacted —
the full key is only shown once, when it is created. Disabled and
archived keys are included (see each key's `status`) so historical
usage can always be matched to the key that generated it.

Requires an API key whose owner is an organization admin. Keys owned
by other members receive a 404.


Reference: https://developer.ideogram.ai/api-reference/account/api-keys

## Authentication

- `Api-Key` header (required) — API key for access control. Use in the header with the name \"Api-Key\"

## Response

### 200

The organization's API keys, redacted.

- `api_keys` (list of AccountApiKey, required) — All API keys in the organization, newest first.

## Errors

### 401 Unauthorized Error

Unauthorized.

- `any`

### 404 Not Found Error

No organization with billing access was found for this credential.

- `any`

## Types

### AccountApiKey

- `api_key_id` (string, required) — Base64 encoded API key ID
- `redacted_api_key` (string, required) — A redacted text snippet of the API key. Contains the first 4 characters of the API key
- `creation_time` (datetime, required) — The date at which the API key was created
- `status` (enum, required)
  - Allowed values: `active`, `disabled`, `archived`
- `label` (string, optional, nullable) — An optional user-supplied label for managing the API key
- `creator_display_label` (string, optional, nullable) — Name of the member who created the key, falling back to their display handle when no name is set. Null on keys created before creators were recorded, and on workspace types whose keys are shared rather than owned by one member.

## Examples

**Response**

```json
{
  "api_keys": [
    {
      "api_key_id": "JRPVD7jWR1aTBYiJ0UFVOg",
      "redacted_api_key": "ATG56•••••••••••••",
      "creation_time": "2024-01-15T09:30:00Z",
      "status": "active",
      "label": "Live production environment",
      "creator_display_label": "John Doe"
    },
    {
      "api_key_id": "JRPVD7jWR1aTBYiJ0UFVOg",
      "redacted_api_key": "ATG56•••••••••••••",
      "creation_time": "2024-01-15T09:30:00Z",
      "status": "active",
      "label": "Live production environment",
      "creator_display_label": "John Doe"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.ideogram.ai/v2/account/api-keys"

headers = {"Api-Key": "<apiKey>"}

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

print(response.json())
```

```javascript
const url = 'https://api.ideogram.ai/v2/account/api-keys';
const options = {method: 'GET', headers: {'Api-Key': '<apiKey>'}};

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

```go
package main

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

func main() {

	url := "https://api.ideogram.ai/v2/account/api-keys"

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

	req.Header.Add("Api-Key", "<apiKey>")

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

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

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

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.ideogram.ai/v2/account/api-keys")

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

request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<apiKey>'

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

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.ideogram.ai/v2/account/api-keys")
  .header("Api-Key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.ideogram.ai/v2/account/api-keys', [
  'headers' => [
    'Api-Key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.ideogram.ai/v2/account/api-keys");
var request = new RestRequest(Method.GET);
request.AddHeader("Api-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Api-Key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.ideogram.ai/v2/account/api-keys")! 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()
```