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

# Get Granted Access List

> Retrieves the list of API Proxies and API Proxy Groups that a credential has access to. This endpoint shows which resources the credential can access.

## Endpoint

```
GET /apiops/projects/{projectName}/credentials/{username}/access/
```

## Authentication

Requires a Personal API Access Token.

### Header

```
Authorization: Bearer YOUR_TOKEN
```

## Request

### Headers

| Header        | Value          | Required |
| ------------- | -------------- | -------- |
| Authorization | Bearer {token} | Yes      |

### Path Parameters

| Parameter   | Type   | Required | Description                |
| ----------- | ------ | -------- | -------------------------- |
| projectName | string | Yes      | Project name               |
| username    | string | Yes      | Username of the credential |

### Query Parameters

None.

## Response

### Success Response (200 OK)

```json theme={null}
{
  "success": true,
  "resultList": [
    {
      "name": "MyAPI",
      "type": "API_PROXY"
    },
    {
      "name": "PaymentAPI",
      "type": "API_PROXY"
    },
    {
      "name": "MyAPIGroup",
      "type": "API_PROXY_GROUP"
    }
  ]
}
```

#### Response Fields

| Field      | Type           | Description                             |
| ---------- | -------------- | --------------------------------------- |
| success    | boolean        | Indicates if the request was successful |
| resultList | array\[object] | List of granted access items            |

### Access Item Object

| Field | Type   | Description                                                |
| ----- | ------ | ---------------------------------------------------------- |
| name  | string | Name of the API Proxy or API Proxy Group                   |
| type  | string | Type of access. See [EnumAccessType](#enumaccesstype-type) |

### EnumAccessType

* `API_PROXY` - Access to a specific API Proxy
* `API_PROXY_GROUP` - Access to an API Proxy Group

### Notes

* Returns both API Proxy and API Proxy Group accesses
* Empty list (`[]`) is returned if credential has no access
* Only shows accesses within the project scope

### Error Response (400 Bad Request)

```json theme={null}
{
  "error": "bad_request",
  "error_description": "Credential (username: api-user) was not found!"
}
```

### Error Response (401 Unauthorized)

```json theme={null}
{
  "error": "unauthorized_client",
  "error_description": "Invalid token"
}
```

### Error Response (404 Not Found)

```json theme={null}
{
  "error": "not_found",
  "error_description": "Project(MyProject) was not found or user does not have privilege to access it!"
}
```

## cURL Example

```bash theme={null}
curl -X GET \
  "https://demo.apinizer.com/apiops/projects/MyProject/credentials/api-user/access/" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## Notes and Warnings

* **Credential Must Exist**:
  * Credential with specified username must exist

* **Project Scope**:
  * Only shows accesses within the project
  * Global accesses may not be shown for regular projects

* **Empty Access**:
  * Returns empty list if credential has no access

* **Access Types**:
  * Shows both API Proxy and API Proxy Group accesses
  * Type field indicates the access type

## Related Documentation

* [Grant Access](/api-reference/credentials/access/grant-access) - Grant access to API Proxy or Group
* [Revoke Access](/api-reference/credentials/access/revoke-access) - Revoke access from API Proxy or Group
* [List Credentials](/api-reference/credentials/crud/list-credentials) - List all credentials
