Skip to main content
GET
Get a single File

Authorizations

Authorization
string
header
required

A static Affinity API key, presented as a bearer token.

Path Parameters

fileId
integer<int32>
required

File ID

Required range: 1 <= x <= 2147483647

Response

OK

A file uploaded to a company, person, opportunity, or the organization directly.

id
integer<int32>
required

The file's unique identifier

Required range: 1 <= x <= 2147483647
Example:

1

name
string
required

The file's name, including its extension.

Example:

"pitch-deck.pdf"

size
integer<int64>
required

The file's size in bytes.

Required range: 0 <= x <= 9007199254740991
Example:

245760

type
string | null
required

The file's MIME content type. null when the content type is not recorded.

Example:

"application/pdf"

creator
PersonReference · object | null
required

The person who uploaded the file. null when the uploader is not recorded.

createdAt
string<date-time>
required

When the file was uploaded.

Example:

"2026-01-01T00:00:00Z"

updatedAt
string<date-time> | null
required

When the file was last updated. null if the file has never been updated.

Example:

"2026-01-01T00:00:00Z"

downloadUrl
string<uri>
required

A temporary signed URL to download the file's contents. Expires 60 seconds after the response is generated.

Example:

"https://user-files.affinity.co/deal-files/abc123?signature=xyz"