---
updatedAt: 2026-03-01T18:31:59.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/llms.txt
---

# Allowed APIs

akamai_iam_allowed_apis

Get a list of available APIs to a given user.

```json Query
data "akamai_iam_allowed_apis" "my_apis" {
  username             = "jsmith"
  client_type          = "SERVICE_ACCOUNT"
  allow_account_switch = "true"
}

output "my_apis" {
  value = data.akamai_iam_allowed_apis.my_apis
}
```
```json Standard output
my_apis = {
      allowed_apis = [
          {
              access_levels       = [
                  "READ-ONLY",
                ]
              api_id              = 123
              api_name            = "Event Viewer APIs"
              description         = "Event Viewer APIs"
              documentation_url   = "https://developer.akamai.com/api/core_features/event_viewer/v1.html"
              endpoint            = "/event-viewer-api/v1/"
              has_access          = true
              service_provider_id = 1
            },
          {
              access_levels       = [
                  "READ-WRITE",
                  "READ-ONLY",
                ]
              api_id              = 987
              api_name            = "EdgeWorkers"
              description         = "EdgeWorkers"
              documentation_url   = "https://developer.akamai.com/api/web_performance/edgeworkers/v1.html"
              endpoint            = "/edgeworkers/"
              has_access          = true
              service_provider_id = 1
            },
        ]
      client_type          = "SERVICE_ACCOUNT"
      username             = "jsmith"
    }
```

## Arguments

Pass the name of a user in the `data` block to get a list of APIs available to them. Optionally, you can narrow down the results by a client type or account switch key.

[block:parameters]
{
  "data": {
    "h-0": "Argument",
    "h-1": "Required",
    "h-2": "Description",
    "0-0": "`username`",
    "0-1": "✔",
    "0-2": "A user name.",
    "1-0": "`client_type`",
    "1-1": "",
    "1-2": "Filters APIs by a client type. Possible values:  <ul><li><code>USER_CLIENT</code></li><li><code>SERVICE_ACCOUNT</code></li><li><code>CLIENT</code></li></ul>",
    "2-0": "`allow_account_switch`",
    "2-1": "",
    "2-2": "Filters APIs by accounts the user can switch to. It's `false` by default."
  },
  "cols": 3,
  "rows": 3,
  "align": [
    "left",
    "center",
    "left"
  ]
}
[/block]

## Attributes

Returned to you is an `allowed_apis` list for the specified user.

[block:parameters]
{
  "data": {
    "h-0": "Attribute",
    "h-1": "Description",
    "0-0": "`access_levels`",
    "0-1": "The access type a user has to the API. Possible values: <ul><li><code>READ-ONLY</code></li><li><code>READ-WRITE</code></li></ul>",
    "1-0": "`api_id`",
    "1-1": "The API's ID.",
    "2-0": "`api_name`",
    "2-1": "The API's name.",
    "3-0": "`description`",
    "3-1": "The human-readable details about about the API.",
    "4-0": "`documentation_url`",
    "4-1": "The link to the API's documentation.",
    "5-0": "`endpoint`",
    "5-1": "Specifies where the API can access resources.",
    "6-0": "`has_access`",
    "6-1": "Specifies whether the user can access the API. <ul><li><code>true</code>. The user can access the API.</li><li><code>false</code>. The use can't access it.</ul>",
    "7-0": "`service_provider_id`",
    "7-1": "The API's service provider ID."
  },
  "cols": 2,
  "rows": 8,
  "align": [
    "left",
    "left"
  ]
}
[/block]

# Sibling pages

* [Accessible groups](https://techdocs.akamai.com/terraform/docs/iam-ds-access-grps.md)
* [Account switch keys](https://techdocs.akamai.com/terraform/docs/iam-ds-asks.md)
* [API client](https://techdocs.akamai.com/terraform/docs/iam-ds-api-client.md)
* [API clients](https://techdocs.akamai.com/terraform/docs/iam-ds-api-clients.md)
* [Authorized users](https://techdocs.akamai.com/terraform/docs/iam-ds-auth-users.md)
* [Blocked properties](https://techdocs.akamai.com/terraform/docs/iam-ds-blocked-props.md)
* [CIDR block](https://techdocs.akamai.com/terraform/docs/iam-ds-cidr-block.md)
* [CIDR blocks](https://techdocs.akamai.com/terraform/docs/iam-ds-cidr-blocks.md)
* [Contact types](https://techdocs.akamai.com/terraform/docs/iam-ds-contact-types.md)
* [Countries](https://techdocs.akamai.com/terraform/docs/iam-ds-countries.md)
* [Grantable roles](https://techdocs.akamai.com/terraform/docs/iam-ds-grantable-roles.md)
* [Group](https://techdocs.akamai.com/terraform/docs/iam-ds-group.md)
* [Groups](https://techdocs.akamai.com/terraform/docs/iam-ds-groups.md)
* [Password policy](https://techdocs.akamai.com/terraform/docs/iam-ds-password-policy.md)
* [Property users](https://techdocs.akamai.com/terraform/docs/property-users.md)
* [Role](https://techdocs.akamai.com/terraform/docs/iam-ds-role.md)
* [Roles](https://techdocs.akamai.com/terraform/docs/iam-ds-roles.md)
* [States](https://techdocs.akamai.com/terraform/docs/iam-ds-states.md)
* [Supported languages](https://techdocs.akamai.com/terraform/docs/iam-ds-supported-languages.md)
* [Time zones](https://techdocs.akamai.com/terraform/docs/iam-ds-timezones.md)
* [Timeout policies](https://techdocs.akamai.com/terraform/docs/iam-ds-timeout-policies.md)
* [User](https://techdocs.akamai.com/terraform/docs/iam-ds-user.md)
* [Users](https://techdocs.akamai.com/terraform/docs/iam-ds-users.md)
* [Users affected by moving group](https://techdocs.akamai.com/terraform/docs/iam-ds-users-affected-by-moving-group.md)