# upload

```graphql
query Upload($input: UploadInput!) {
  upload(input: $input) {
    id
    path
    fileName
    contentType
    sizeBytes
    url
    status
    visibility
    permission
    createdAt
    updatedAt
    deletedAt
  }
}
```

Return one upload's metadata by UUID or project-relative path. Requires project.uploads.read.

## Arguments

| Name                     | Type         | Required | Description                                  |
| ------------------------ | ------------ | -------- | -------------------------------------------- |
| `input`                  | UploadInput! | Yes      |                                              |
| `input.projectReference` | String!      | Yes      | Project UUID, slug or configured domain.     |
| `input.uploadReference`  | String!      | Yes      | Upload UUID or project-relative upload path. |

## Variables

```json
{
  "input": {
    "projectReference": "string",
    "uploadReference": "string"
  }
}
```

## Responses

| Status | Description                 |
| ------ | --------------------------- |
| 200    | The Upload! in data.upload. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query Upload($input: UploadInput!) {\n  upload(input: $input) {\n    id\n    path\n    fileName\n    contentType\n    sizeBytes\n    url\n    status\n    visibility\n    permission\n    createdAt\n    updatedAt\n    deletedAt\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string",
      "uploadReference": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "upload": {
      "id": "string",
      "path": "string",
      "fileName": "string",
      "contentType": "string",
      "sizeBytes": 0,
      "url": "https://example.com",
      "status": "pending",
      "visibility": "project",
      "permission": "read",
      "createdAt": "2026-01-01T00:00:00Z",
      "updatedAt": "2026-01-01T00:00:00Z",
      "deletedAt": "2026-01-01T00:00:00Z"
    }
  }
}
```
