---
ai:
  exclude: true
search:
  tags:
    - epic
    - GET
seo:
  description: >-
    Returns the epic for a given epic Id. This… Reference for the GET
    /agile/1.0/epic/{epicIdOrKey} endpoint in the Jira Software Data Center REST
    API Reference.
sidebar:
  label: Get an epic by id or key
  badge: GET
title: Get an epic by id or key
type: openapi-operation
---
Returns the epic for a given epic Id. This epic will only be returned if the user has permission to view it.

`GET /agile/1.0/epic/{epicIdOrKey}`

**Responses**

- `200` — Returns the requested epic.
- `401` — Returned if the user is not logged in.
- `403` — Returned if the user does not a have valid license.
- `404` — Returned if the epic does not exist or the user does not have permission to view it.

Response example, 200:

```json
{
  "color": "color_6",
  "done": true,
  "id": 10000,
  "key": "PR-1",
  "name": "Epic 1",
  "self": "http://www.example.com/jira/rest/api/2/issue/10000",
  "summary": "Epic 1 summary"
}
```
