# Read repository tag


[API catalog](/reference/api/) · [Docker Hub overview](/reference/api/hub/latest/) · [Product manual](https://docs.docker.com/docker-hub/) · [OpenAPI specification](/reference/api/hub/latest.yaml)

API version: 2-beta



`GET /v2/namespaces/{namespace}/repositories/{repository}/tags/{tag}`

Returns details for a specific tag in the specified repository.

This operation accepts bearer tokens issued from organization access tokens (OATs). The token must have the required resource access and scopes.


## Connection and access

[API connection and authentication guidance](/reference/api/hub/latest/#authentication)


Server: `https://hub.docker.com`

Effective security: alternatives are OR; schemes within an alternative are AND. An empty array declares no HTTP authentication requirement.

```json
[
  {
    "bearerAuth": []
  }
]
```
## Example request

Replace placeholders and provide the required credentials or request body.

```console
curl \
  --request GET \
  --header "Authorization: Bearer ${TOKEN}" \
  --header 'Accept: application/json' \
  'https://hub.docker.com/v2/namespaces/<NAMESPACE>/repositories/<REPOSITORY>/tags/<TAG>'
```

## Parameters

### namespace

Location: path. Required: yes.

Namespace of the repository, such as a user or organization name.

```json
{
  "description": "Namespace of the repository, such as a user or organization name.",
  "in": "path",
  "name": "namespace",
  "pointer": "/paths/~1v2~1namespaces~1{namespace}~1repositories~1{repository}~1tags~1{tag}/parameters/0",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

### repository

Location: path. Required: yes.

Name of the repository within the namespace.

```json
{
  "description": "Name of the repository within the namespace.",
  "in": "path",
  "name": "repository",
  "pointer": "/paths/~1v2~1namespaces~1{namespace}~1repositories~1{repository}~1tags~1{tag}/parameters/1",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

### tag

Location: path. Required: yes.

Name of the image tag.

```json
{
  "description": "Name of the image tag.",
  "in": "path",
  "name": "tag",
  "pointer": "/paths/~1v2~1namespaces~1{namespace}~1repositories~1{repository}~1tags~1{tag}/parameters/2",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

## Request and responses

### Response 200 application/json

repository tag


Schema:

```json
{
  "$ref": "#/components/schemas/tag"
}
```




Schema example:
```json
{
  "creator": 1234,
  "full_size": 123456,
  "id": 12345,
  "images": [
    {
      "architecture": "amd64",
      "features": null,
      "last_pulled": null,
      "last_pushed": "2021-01-05T21:06:53.506400Z",
      "os": "linux",
      "os_features": null,
      "os_version": null,
      "size": 123456,
      "status": "active",
      "variant": null
    }
  ],
  "last_updated": "2021-01-05T21:06:53.506400Z",
  "last_updater": 1234,
  "last_updater_username": "dockeruser",
  "name": "latest",
  "repository": 5678,
  "tag_last_pulled": null,
  "tag_last_pushed": "2021-01-05T21:06:53.506400Z",
  "tag_status": "active",
  "v2": true
}
```


### Response 403 application/json

Forbidden


Schema:

```json
{
  "$ref": "#/components/schemas/error"
}
```




error:
```json
{
  "errinfo": null,
  "message": "permission denied"
}
```


### Response 404 application/json

Not Found


Schema:

```json
{
  "$ref": "#/components/schemas/error"
}
```




error:
```json
{
  "errinfo": null,
  "message": "not found"
}
```


## Complete operation contract

```json
{
  "description": "Returns details for a specific tag in the specified repository.\n\nThis operation accepts bearer tokens issued from organization access tokens (OATs). The token must have the required resource access and scopes.\n",
  "operationId": "GetRepositoryTag",
  "responses": {
    "200": {
      "$ref": "#/components/responses/get_tag"
    },
    "403": {
      "$ref": "#/components/responses/Forbidden"
    },
    "404": {
      "$ref": "#/components/responses/NotFound"
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "summary": "Read repository tag",
  "tags": [
    "repositories"
  ]
}
```

## Referenced schemas

- `#/components/responses/Forbidden`

- `#/components/responses/NotFound`

- `#/components/responses/get_tag`




