# GET /profile/files/{id}

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the export group.

Get a registered file's details and owning package

- Who may call it: administrator
- Token scope, any of: settings, read, all
- Answers: 200 OK

The response contains the registration in file and indicates whether the file is present on disk. For a file that is present, it includes the current mode, owner, group, size, time of the last change, and the owning package if one is found. If the file is absent, package is null. The API returns 404 if id does not identify a registration.

## Parameters

- `id` (path, integer, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/profile/files/1" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "file": {
    "changed_at": "text",
    "created_at": "2026-09-09T10:15:00Z",
    "group": "text",
    "id": 1,
    "mode": "text",
    "note": "added by hand",
    "owner": "text",
    "package": {
      "name": "alice",
      "version": "0.0.1"
    },
    "path": "public_html/index.php",
    "present": true,
    "size": 1
  }
}
```

## Errors

- 401: Authentication required
- 404: Not registered
