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

# List API Endpoints

> List all API endpoints with optional filtering and pagination

# List API Endpoints

List all API endpoints with optional filtering and pagination.

## Query Parameters

**apiCollection** `string`

Filter by API collection fully qualified name.

**service** `string`

Filter by API service fully qualified name.

**limit** `integer` (default: 10)

Maximum number of results to return (max: 1000000).

**before** `string`

Cursor for backward pagination.

**after** `string`

Cursor for forward pagination.

**fields** `string`

Comma-separated list of fields to include: `owners`, `tags`, `extension`, `domains`, `sourceHash`. See [Supported Fields](#supported-fields) below.

**include** `string` (default: non-deleted)

Include `all`, `deleted`, or `non-deleted` entities.

```python GET /v1/apiEndpoints theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import APIEndpoints

configure(
    host="https://your-company.open-metadata.org/api",
    jwt_token="your-jwt-token"
)

# List first page
endpoints = APIEndpoints.list(limit=50)
for ep in endpoints.entities:
    print(f"{ep.fullyQualifiedName.root}")

# List all with auto-pagination
for ep in APIEndpoints.list_all():
    print(f"{ep.fullyQualifiedName.root}")

# Filter by API collection
endpoints = APIEndpoints.list(
    filters={"apiCollection": "sample_api_service.pet"},
    fields=["owners", "tags", "domains"],
    limit=50
)

for ep in endpoints.entities:
    print(f"{ep.fullyQualifiedName.root} [{ep.requestMethod.value}]")
    if ep.owners:
        print(f"  Owners: {[o.name for o in ep.owners.root]}")
    if ep.tags:
        print(f"  Tags: {[t.tagFQN.root for t in ep.tags]}")
```

```java GET /v1/apiEndpoints theme={null}
import org.openmetadata.sdk.models.ListParams;
import org.openmetadata.sdk.models.ListResponse;
import org.openmetadata.schema.entity.data.APIEndpoint;

// client is an initialized OpenMetadataClient.

// List first page
ListResponse<APIEndpoint> firstPage = client.apiEndpoints().list(
    new ListParams().setLimit(50)
);

for (APIEndpoint ep : firstPage.getData()) {
    System.out.println(ep.getFullyQualifiedName());
}

// Filter by API collection with fields
ListResponse<APIEndpoint> filtered = client.apiEndpoints().list(
    new ListParams()
        .addFilter("apiCollection", "sample_api_service.pet")
        .setFields("owners,tags,domains")
        .setLimit(50)
);

for (APIEndpoint ep : filtered.getData()) {
    System.out.println(ep.getFullyQualifiedName());
}
```

```bash GET /v1/apiEndpoints theme={null}
# List all
curl "{base_url}/api/v1/apiEndpoints?limit=50" \
  -H "Authorization: Bearer {access_token}"

# Filter by API collection
curl "{base_url}/api/v1/apiEndpoints?apiCollection=sample_api_service.pet&limit=50" \
  -H "Authorization: Bearer {access_token}"

# Filter by service with fields
curl "{base_url}/api/v1/apiEndpoints?service=sample_api_service&fields=owners,tags,domains&limit=50" \
  -H "Authorization: Bearer {access_token}"
```

```json Response theme={null}
{
  "data": [
    {
      "id": "1f61427a-4a64-4070-9ac8-1d29302dac7c",
      "name": "addPet",
      "displayName": "Add Pet",
      "fullyQualifiedName": "sample_api_service.pet.addPet",
      "description": "add a new pet",
      "version": 0.1,
      "updatedAt": 1769982733987,
      "updatedBy": "admin",
      "endpointURL": "https://petstore3.swagger.io/#/pet/addPet",
      "requestMethod": "POST",
      "requestSchema": {
        "schemaType": "JSON",
        "schemaFields": [
          {"name": "id", "dataType": "INT", "description": "ID of pet"}
        ]
      },
      "href": "http://localhost:8585/api/v1/apiEndpoints/1f61427a-4a64-4070-9ac8-1d29302dac7c",
      "owners": [],
      "tags": [],
      "service": {
        "id": "58d413a8-abc3-4a6d-bd8a-13a0234b1ff8",
        "type": "apiService",
        "name": "sample_api_service",
        "deleted": false
      },
      "serviceType": "Rest",
      "deleted": false,
      "domains": []
    }
  ],
  "paging": {
    "after": "...",
    "total": 8
  }
}
```

***

## Returns

Returns a paginated list of API endpoint objects. By default, only basic fields are included. Use the `fields` parameter to request additional data.

## Response

**data** `array`

Array of API endpoint objects.

**properties**

**id** `string`

Unique identifier for the API endpoint (UUID format).

**name** `string`

API endpoint name.

**fullyQualifiedName** `string`

Fully qualified name in format `service.collection.endpointName`.

**displayName** `string`

Human-readable display name.

**endpointURL** `string`

URL for the API endpoint.

**requestMethod** `string`

HTTP request method.

**service** `object`

Reference to the parent API service.

**serviceType** `string`

Type of API service, for example Rest.

**owners** `array`

List of owners assigned to the API endpoint. Only included when `fields` contains `owners`.

**tags** `array`

Classification tags applied. Only included when `fields` contains `tags`.

**domains** `array`

Domain assignments for governance. Only included when `fields` contains `domains`.

**extension** `object`

Custom properties. Only included when `fields` contains `extension`.

**paging** `object`

Pagination information.

**properties**

**total** `integer`

Total count of API endpoints matching the query.

**after** `string`

Cursor for the next page of results. Null if this is the last page.

**before** `string`

Cursor for the previous page of results. Null if this is the first page.

***

## Supported Fields

The following fields can be requested via the `fields` query parameter:

| Field | Description |
| - | - |
| `owners` | Owner references (users and teams) |
| `tags` | Classification tags |
| `extension` | Custom property values |
| `domains` | Domain assignments for governance |
| `sourceHash` | Hash for change detection |

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to list API endpoints |


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