Skip to main content
GET
/
files
/
{id}
Get file details
curl --request GET \
  --url https://api.bitgpt.xyz/files/{id} \
  --header 'Authorization: <api-key>'
{
  "status": 200,
  "data": {
    "id": "123"
  },
  "error": null,
  "log": null,
  "validator": null,
  "support_id": null,
  "message": "Resource created successfully",
  "env": "development",
  "id": "file_0198042e-6dde-7b9c-bc91-452a7e0c833b",
  "hash": "04b9e2ec43133ae7287f97764c0beda19f304374e1d6bfe4fcc36ad54502e5dc",
  "organization_id": "org_0196b0e9-11d8-7f26-b1d2-bd47054e4827",
  "original_name": "4.jpg",
  "filename": "0198042e-6dde-76e0-b817-3afb324e29ac.jpg",
  "filepath": "org_uploads/org_0196b0e9-11d8-7f26-b1d2-bd47054e4827/image/0198042e-6dde-76e0-b817-3afb324e29ac.jpg",
  "mime_type": "image/jpeg",
  "file_size": 1060793,
  "type": "image",
  "created_at": "2025-07-13 16:26:48.415",
  "updated_at": null,
  "url": "https://assets.bitgpt.xyz/org_uploads/org_0196b0e9-11d8-7f26-b1d2-bd47054e4827/image/0198042e-6dde-76e0-b817-3afb324e29ac.jpg"
}

Authorizations

Authorization
string
header
required

Send your access token as header Authorization: Bearer {accessToken}

Authorization
string
header
required

Your API key that starts with sk_live or sk_test. You can create yours at go.bitgpt.xyz/api-keys.

Path Parameters

id
string
required

File ID

Response

File retrieved successfully

status
enum<integer>
required

Status code of the response

Available options:
200,
201,
202
data
object
required

File object containing file identifier and URL for accessing the file resource

Example:
{
"id": "file_0196b6e6-54e3-796d-9c6a-2862a5fef597",
"url": "https://assets.bitgpt.xyz//app/public/src/storage/uploads/image/2025/05/09/0196b6e6-54e3-7290-9d73-0074c623e368.jpg"
}
message
string | null
required

Message of the response, human readable

Example:

"Resource created successfully"

env
enum<string>
required

API environment

Available options:
development,
production
error
string | null

Error message of the response, human readable

Example:

"Invalid email address"

log

Useful informaiton, not always present, to debug the response

Examples:
{ "request_id": "req_1234567890" }

"Some pertinent log message"

validator
object

Validator response object, each key is the field name and value is the error message

Example:
{
"email": "Invalid email address",
"password": "Password is required"
}
support_id
string<uuid> | null

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

Example:

"support_uuidv7-something-else"