> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# apiKeyScope

> Returns the scopes assigned to a specific SCOPED API key



**query** `apiKeyScope(apiKeyId: UUID!): [ApiKeyScope!]!`

## Arguments

**`apiKeyId`**: `UUID!` (required)

## Returns

`[ApiKeyScope!]!`

**`action`**: `ApiKeyScopeAction!`

The action allowed on the resource

---

**`resource`**: `ApiKeyScopeResource!`

The resource type for the scope

## Examples

```graphql Query
query ApiKeyScope($apiKeyId: UUID!) {
  apiKeyScope(apiKeyId: $apiKeyId) {
    action
    resource
  }
}
```

```json Variables
{
  "apiKeyId": "value"
}
```

```json Response
{
  "data": {
    "apiKeyScope": [
      {
        "action": "READ",
        "resource": "API_KEY"
      }
    ]
  }
}
```


## Related topics

- [ApiKeyScope](https://docs.stigg.io/graphql-reference/types/ApiKeyScope.md)
- [ApiKeyScopeInput](https://docs.stigg.io/graphql-reference/types/ApiKeyScopeInput.md)
- [ApiKeyScopeResource](https://docs.stigg.io/graphql-reference/types/ApiKeyScopeResource.md)
- [ApiKeyScopeAction](https://docs.stigg.io/graphql-reference/types/ApiKeyScopeAction.md)
- [createScopedApiKey](https://docs.stigg.io/graphql-reference/mutations/createScopedApiKey.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.