Files Encrypted
dev-api

Get encrypted file details

Changed on

Retrieve detailed information about a specific encrypted file by ID, optionally with a signed download URL. Supports shared chat file access without authentication.

get/files/encrypted/{id}

Request

  • Base URL
    https://gateway.prem.io
  • Auth
    • HTTP bearer
    • or API key in header Authorization
    • or none

Path parameters

idstring required

Encrypted file ID

Query parameters

url'true' | 'false'

Include signed download URL in response

Response

Encrypted file retrieved successfully

status200 | 201 | 202 required

Status code of the response

errorstring nullable

Error message of the response, human readable

messagestring nullable required

Message of the response, human readable

env'development' | 'production' required

API environment

support_idstring uuid nullable

Support ID linked to the response, used to identify it when talking with our team.

Example response

{
  "data": {
    "id": "file_0198042e-6dde-7b9c-bc91-452a7e0c833b",
    "user_id": "user_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
    "organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
    "hash": "04b9e2ec43133ae7287f97764c0beda19f304374e1d6bfe4fcc36ad54502e5dc",
    "version": "1",
    "kid": "key_01234567-89ab-cdef-0123-456789abcdef",
    "wrapped_dek": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "original_name": "document.pdf",
    "file_name": "0198042e-6dde-76e0-b817-3afb324e29ac.pdf.enc",
    "file_path": "encrypted/org_0196b0e9-11d8-7f26-b1d2-bd47054e4827/user_0196b0e9-11d8-7f26-b1d2-bd47054e4827/0198042e-6dde-76e0-b817-3afb324e29ac.pdf.enc",
    "mime_type": "application/pdf",
    "file_size": 1060793,
    "type": "document",
    "created_at": "2025-07-13 16:26:48.415",
    "updated_at": null,
    "url": "https://encrypted.prem.io/encrypted/org_0196b0e9-11d8-7f26-b1d2-bd47054e4827/user_0196b0e9-11d8-7f26-b1d2-bd47054e4827/0198042e-6dde-76e0-b817-3afb324e29ac.pdf.enc"
  }
}

Changes

    • warning

      added the new 405.00 enum value to the / response property for the response status

    • warning

      added the new 405.00 enum value to the / response property for the response status

    • warning

      added the new 405.00 enum value to the / response property for the response status

    • warning

      added the new 405.00 enum value to the response property for the response status

    • warning

      added the new 409.00 enum value to the / response property for the response status

    • warning

      added the new 409.00 enum value to the / response property for the response status

    • warning

      added the new 409.00 enum value to the / response property for the response status

    • warning

      added the new 409.00 enum value to the response property for the response status

    • warning

      added the new 500.00 enum value to the / response property for the response status

    • warning

      added the new 500.00 enum value to the / response property for the response status

    • warning

      added the new 500.00 enum value to the / response property for the response status

    • warning

      added the new 500.00 enum value to the response property for the response status

    • info

      the endpoint scheme security ApiKeyAuth was added to the API

    • info

      the endpoint scheme security BearerAuth was added to the API

    • info

      the endpoint scheme security BearerAuth AND ApiKeyAuth was removed from the API

    • info

      endpoint added