# How can I get the commit id details including branch and tag?

**URL:** <https://forum.gitea.com/t/how-can-i-get-the-commit-id-details-including-branch-and-tag/8584>\
**Category:** Gitea Usages\
**Created:** [February 18, 2024, 6:37am UTC](https://forum.gitea.com/t/how-can-i-get-the-commit-id-details-including-branch-and-tag/8584 "2024-02-18T06:37:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Masber](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/masber/32/4396_2.png) [@Masber](https://forum.gitea.com/u/Masber)\
**Post date:** [February 18, 2024, 6:37am UTC](https://forum.gitea.com/t/how-can-i-get-the-commit-id-details-including-branch-and-tag/8584/1 "2024-02-18T06:37:03Z")

</div>

Dear Gitea community,

I am trying to get the details of a commit id using the REST API,

```auto
curl -k -H "Authorization: token __REDACTED__" "https://api-gw-service-nmn.local/vcs/api/v1/repos/cray/cos-config-management/commits/56574bf6db06aa7d7b23b2450ba3694afe304b8b/status" | jq

```

The command above will return

```auto
{
  "state": "",
  "sha": "",
  "total_count": 0,
  "statuses": null,
  "repository": null,
  "commit_url": "",
  "url": ""
}

```

The commit id exits in the repo because the command below returns data related to CSM

```auto
curl -k -H "Authorization: token __REDACTED__" "https://api-gw-service-nmn.local/vcs/api/v1/repos/cray/admin-scripts/git/commits/56574bf6db06aa7d7b23b2450ba3694afe304b8b" | jq

```

How can I get the branch name, author, tag, etc from a commit id?
