# apiKey query


`apiKey` is a GraphQL query of the Chameleoon MAX API. Send it as `POST https://max-api.chameleoon.sk/api/v1/graphql` with your API key, see [Chameleoon MAX](/chameleoon-max).

Returns the API key that you are calling with, as it applies right now. Use it to see the
permissions and scopes that your API key has. They are limited by what your API key's owner
may do now.

## Returns

[`ApiKeySelf!`](/chameleoon-max/type/api-key-self)

## Example

**Query**

```graphql
query apiKey {
  apiKey {
    id
    name
    environment
    permissions
    scopes {
      type
      value
    }
  }
}
```

**Response**

```json
{
  "data": {
    "apiKey": {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "example",
      "environment": "LIVE",
      "permissions": [
        "example"
      ],
      "scopes": [
        {
          "type": "LEGAL_ENTITY",
          "value": "example"
        }
      ]
    }
  }
}
```

Values are illustrative: replace IDs and codes with your own before you send the call.
