Files

Create a download link for a file

POST
https://api.searchsoftware.nl/v4/files/{id}/download-link

Creates a link that downloads the file without an Authorization header, for 10 minutes. Needs the same access as GET /v4/files/{id}/download: files:read and read access to a record the file belongs to. Each use of the link checks that access again.

The link works until it expires and can be opened more than once. Treat it like a password: anyone who has it can download the file until then.

Available to OAuth access tokens and API keys. Answers 503 with Retry-After when links can't be stored right now.

Parameters

idstringrequiredpath

File ID

Response

Download link created

Response fields application/json
statusstringokrequired
Example
ok
Show child attributes
idstringrequired

Identifier

Example
vM7Lp2q
typestringfile_download_linkrequired
Example
file_download_link
attributesFileDownloadLinkAttributesrequired
Show child attributes
urlstringrequired

Opens in a browser without an Authorization header until expires_at

Example
https://api.pikaflow.app/v4/files/links/pfdl_x9Qm2Z4hW7nK1pVt8sRb3cYd6fLg0jEa5uTo2iNq4wH
expires_atstring<date-time>required

When the link stops working (10 minutes after it was created)

Example
2026-03-10T14:30:00Z
filenamestringrequired
Example
cv.pdf
mimestringrequired
Example
application/pdf
sizeinteger<int32> | nullrequired

File size in bytes

Example
48213
400Bad RequestErrorResponse

Invalid id

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_ID",
    "status_code": 400,
    "message": "Invalid id"
  }
}
401UnauthorizedErrorResponse

Invalid API key

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INVALID_API_KEY",
    "status_code": 401,
    "message": "Invalid API key"
  }
}
403ForbiddenErrorResponse

Insufficient scope

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "FORBIDDEN",
    "status_code": 403,
    "message": "Insufficient scope"
  }
}
404Not FoundErrorResponse

File not found, unlinked, or with no stored content

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "NOT_FOUND",
    "status_code": 404,
    "message": "Record not found"
  }
}
500Internal Server ErrorErrorResponse

Internal server error

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Example
{
  "status": "error",
  "error": {
    "code": "INTERNAL_ERROR",
    "status_code": 500,
    "message": "Internal server error"
  }
}
503Service UnavailableErrorResponse

Download links are temporarily unavailable

Response fields application/json
statusstringerrorrequired
Example
error
errorErrorBodyrequired
Show child attributes
codestringrequired

Stable machine-readable error code.

status_codeinteger<int32>required

HTTP status code for this response.

messagestringrequired

Human-readable error message.

Authorization

bearer_authhttp (bearer) in header

API key or OAuth access token in Authorization header

Scopes: files:read

oauth2_authoauth2

OAuth authorization code flow with mandatory S256 PKCE.

Scopes: files:read

apikey_authapiKey in query

API key in query string

Scopes: files:read