Get File
Retrieve detailed information about a specific configuration file.
Endpoint
GET /{envId}/file/{id}
Authentication
Required: Yes (Session or Bearer Token with 2FA)
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
envId | string (UUID) | Yes | Environment ID containing the file |
id | string (UUID) | Yes | File ID |
Response
Success Response (200 OK)
{
"id": "file-550e8400-e29b-41d4-a716-446655440000",
"name": "app-config.json",
"envIdRef": "660e8400-e29b-41d4-a716-446655440001",
"companyIdRef": "770e8400-e29b-41d4-a716-446655440002",
"content": "{\"port\": 8080, \"debug\": true, \"apiUrl\": \"https://api.example.com\"}",
"mountPath": "/app/config",
"isDeleted": false,
"createdBy": "user-123",
"modifiedBy": "user-456",
"version": 2
}
Error Responses
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid UUID format |
| 401 | Unauthorized - Invalid or missing authentication |
| 403 | Forbidden - User doesn't have access to this file |
| 404 | Not Found - File or environment doesn't exist |
| 500 | Internal Server Error |
Examples
curl -X GET "https://api.thevenin.cloud/api/v1/{envId}/file/{fileId}" \
-H "Authorization: Bearer tvn_your_api_token_here"