# Get the meta-data (author, date, tags, message) for a specific revision of the application

`GET /api/v1/applications/{name}/revisions/{revision}/metadata`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: apiKey, header Authorization. A token sent as `Authorization: Bearer <token>`. [API Docs](https://sourcey-argocd.pages.dev/developer-guide/api-docs/index.md#authorization) shows how to get one.

Parameters:

- `name` (path, string, required) - the application's name
  Type: string

- `revision` (path, string, required) - the revision of the app
  Type: string

- `appNamespace` (query, string, optional) - the application's namespace.
  Type: string

- `project` (query, string, optional)
  Type: string

- `sourceIndex` (query, integer, int32, optional) - source index (for multi source apps).
  Type: integer, int32

- `versionId` (query, integer, int32, optional) - versionId from historical data (for multi source apps).
  Type: integer, int32

Responses:

- 200: A successful response.

Content type: application/json

Type: object

RevisionMetadata contains metadata for a specific revision in a Git repository. This field is used by the
Source Hydrator feature which may be removed in the future.

Schema: [v1alpha1RevisionMetadata](https://sourcey-argocd.pages.dev/api/models/v1alpha1revisionmetadata/index.md)

- `author` (optional)
  Type: string

- `date` (optional)
  Reference: [v1Time](https://sourcey-argocd.pages.dev/api/models/v1time/index.md); Type: string, date-time
  
  Time is a wrapper around time.Time which supports correct
  marshaling to YAML and JSON.  Wrappers are provided for many
  of the factory methods that the time package offers.
  
  +protobuf.options.marshal=false
  +protobuf.as=Timestamp
  +protobuf.options.(gogoproto.goproto_stringer)=false

- `message` (optional)
  Type: string
  
  Message contains the message associated with the revision, most likely the commit message.

- `references` (optional)
  Type: array
  
  References contains references to information that's related to this commit in some way.
  
  Items:
    Reference: [v1alpha1RevisionReference](https://sourcey-argocd.pages.dev/api/models/v1alpha1revisionreference/index.md); Type: object
    
    RevisionReference contains a reference to a some information that is related in some way to another commit. For now,
    it supports only references to a commit. In the future, it may support other types of references.

- `signatureInfo` (optional)
  Type: string
  
  SignatureInfo contains a hint on the signer if the revision was signed with GPG, and signature verification is enabled.
  
  Deprecated: Use SourceIntegrityResult for more detailed information. SignatureInfo will be removed with the next major version.

- `sourceIntegrityResult` (optional)
  Reference: [v1alpha1SourceIntegrityCheckResult](https://sourcey-argocd.pages.dev/api/models/v1alpha1sourceintegritycheckresult/index.md); Type: object
  
  SourceIntegrityCheckResult represents a conclusion of the SourceIntegrity evaluation.
  Each check performed on a source(es), holds a check item representing all checks performed.

- `tags` (optional)
  Type: array
  
  Items:
    Type: string

- default: An unexpected error response.

Content type: application/json

Type: object

Schema: [runtimeError](https://sourcey-argocd.pages.dev/api/models/runtimeerror/index.md)

- `code` (optional)
  Type: integer, int32

- `details` (optional)
  Type: array
  
  Items:
    Reference: [protobufAny](https://sourcey-argocd.pages.dev/api/models/protobufany/index.md); Type: object

- `error` (optional)
  Type: string

- `message` (optional)
  Type: string

## Examples

### cURL

```bash
curl -X GET 'https://argocd.example.com/api/v1/applications/string/revisions/string/metadata' \
  -H 'Authorization: YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://argocd.example.com/api/v1/applications/string/revisions/string/metadata', {
  method: 'GET',
  headers: {
    'Authorization': 'YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'https://argocd.example.com/api/v1/applications/string/revisions/string/metadata',
    headers={
        'Authorization': 'YOUR_TOKEN',
    },
)
print(response.text)
```
