---
updatedAt: 2026-03-01T18:46:56.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/key-traffic-mgmt/llms.txt
---

# List tags

Returns all existing tags. You can add new tags when creating new keys. See either the [Create keys](ref:post-keys) or [Generate keys](ref:post-keys-generate) operation.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's API Keys and Traffic Management API",
    "url": "https://techdocs.akamai.com/key-traffic-mgmt/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Tags",
    "version": "2"
  },
  "openapi": "3.0.0",
  "paths": {
    "/tags": {
      "get": {
        "description": "Returns all existing tags. You can add new tags when creating new keys. See either the [Create keys](ref:post-keys) or [Generate keys](ref:post-keys-generate) operation.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's API Keys and Traffic Management API",
          "url": "https://techdocs.akamai.com/key-traffic-mgmt/reference/get-tags"
        },
        "operationId": "get-tags",
        "parameters": [
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "tags": [
                    "tag1",
                    "tag2",
                    "tag3"
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "Additional categories assigned to the key that you can use as filters.",
                  "properties": {
                    "tags": {
                      "description": "Tags that you can use to filter your data.",
                      "items": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    }
                  },
                  "required": [
                    "tags"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/tags.yaml"
                  }
                }
              }
            },
            "description": "The response returns all of your tags."
          },
          "400": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request you submitted is invalid. Modify the request and try again.",
                  "errors": [
                    {
                      "detail": "The 'groupId' field must contain a not-null value.",
                      "title": "Null field",
                      "type": "/apikey-manager-api/error-types/not-null"
                    }
                  ],
                  "instance": "2c3a7d43-cd2f-4ac0-8d44-7cea20203513",
                  "status": 400,
                  "title": "Validation error",
                  "type": "/apikey-manager-api/error-types/validation-error"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                  "properties": {
                    "detail": {
                      "description": "Detailed error message.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "Further nested problem objects.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "instance": {
                            "description": "Unique value generated with each API call.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "status": {
                            "description": "HTTP status code that categorizes this error case.",
                            "maximum": 600,
                            "minimum": 100,
                            "type": "integer"
                          },
                          "title": {
                            "description": "Summary of each error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies each error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/problem-nested.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Non-referenceable URI indicating an error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "HTTP status code of the error response.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error response.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "URL for the error type description.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Bad request](ref:400). The request contains invalid data.",
            "x-akamai": {
              "file-path": "errors/400.yaml"
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "You are not authorized to perform this action. Try logging in again.",
                  "instance": "5ca8ba84-1319-4399-b106-f34812ed9c57",
                  "status": 401,
                  "title": "Unauthorized",
                  "type": "/apikey-manager-api/error-types/unauthorized"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                  "properties": {
                    "detail": {
                      "description": "Detailed error message.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "Further nested problem objects.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "instance": {
                            "description": "Unique value generated with each API call.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "status": {
                            "description": "HTTP status code that categorizes this error case.",
                            "maximum": 600,
                            "minimum": 100,
                            "type": "integer"
                          },
                          "title": {
                            "description": "Summary of each error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies each error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/problem-nested.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Non-referenceable URI indicating an error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "HTTP status code of the error response.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error response.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "URL for the error type description.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Unauthorized](ref:401). You are not authorized to perform the action.",
            "x-akamai": {
              "file-path": "errors/401.yaml"
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "You have insufficient permissions to perform this action. Ensure that you have the correct permissions...",
                  "instance": "c656aade-8352-407c-9d8c-49a38b942e64",
                  "status": 403,
                  "title": "Forbidden",
                  "type": "/apikey-manager-api/error-types/forbidden"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                  "properties": {
                    "detail": {
                      "description": "Detailed error message.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "Further nested problem objects.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "instance": {
                            "description": "Unique value generated with each API call.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "status": {
                            "description": "HTTP status code that categorizes this error case.",
                            "maximum": 600,
                            "minimum": 100,
                            "type": "integer"
                          },
                          "title": {
                            "description": "Summary of each error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies each error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/problem-nested.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Non-referenceable URI indicating an error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "HTTP status code of the error response.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error response.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "URL for the error type description.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Forbidden](ref:403). You don't have permission to the resource.",
            "x-akamai": {
              "file-path": "errors/403.yaml"
            }
          },
          "405": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request you submitted is invalid. Modify the request and try again.",
                  "instance": "007ca75f-5ef3-478b-8a63-ddbe30a5de83",
                  "status": 405,
                  "title": "Method Not Allowed",
                  "type": "/apikey-manager-api/error-types/bad-request"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                  "properties": {
                    "detail": {
                      "description": "Detailed error message.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "Further nested problem objects.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "instance": {
                            "description": "Unique value generated with each API call.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "status": {
                            "description": "HTTP status code that categorizes this error case.",
                            "maximum": 600,
                            "minimum": 100,
                            "type": "integer"
                          },
                          "title": {
                            "description": "Summary of each error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies each error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/problem-nested.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Non-referenceable URI indicating an error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "HTTP status code of the error response.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error response.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "URL for the error type description.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Method not allowed](ref:405).",
            "x-akamai": {
              "file-path": "errors/405.yaml"
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The server encountered an internal error. Try again in a while.",
                  "instance": "46f66985-bbe7-4a60-867a-5242be138ef2",
                  "status": 500,
                  "title": "Internal server error",
                  "type": "/apikey-manager-api/error-types/internal-server-error"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                  "properties": {
                    "detail": {
                      "description": "Detailed error message.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "errors": {
                      "description": "Further nested problem objects.",
                      "items": {
                        "additionalProperties": true,
                        "description": "Represents error data in the [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) Problem Details format.",
                        "properties": {
                          "detail": {
                            "description": "Diagnostic instructions to locate and fix the problem.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "instance": {
                            "description": "Unique value generated with each API call.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "status": {
                            "description": "HTTP status code that categorizes this error case.",
                            "maximum": 600,
                            "minimum": 100,
                            "type": "integer"
                          },
                          "title": {
                            "description": "Summary of each error case.",
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "description": "Identifies each error case.",
                            "format": "uri",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "title",
                          "detail"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/problem-nested.yaml"
                        }
                      },
                      "minItems": 0,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "instance": {
                      "description": "Non-referenceable URI indicating an error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "HTTP status code of the error response.",
                      "maximum": 600,
                      "minimum": 100,
                      "type": "integer"
                    },
                    "title": {
                      "description": "Title of the error response.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "URL for the error type description.",
                      "format": "uri",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "instance"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem.yaml"
                  }
                }
              }
            },
            "description": "[Internal server error](ref:500).",
            "x-akamai": {
              "file-path": "errors/500.yaml"
            }
          }
        },
        "summary": "List tags",
        "tags": [
          "Tags"
        ]
      },
      "x-akamai": {
        "file-path": "paths/tags.yaml",
        "path-info": "/tags"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/apikey-manager-api/v2"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "04-tags.yaml"
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```