Files

Generate a presigned URL for uploading a file

Generates a presigned URL that allows the client to upload a file directly. The file will be automatically deleted after 24 hours.

post/v1/files/upload/presigned-url

Request

  • Base URL
    https://docs.grepr.ai (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header GREPR-API-KEY
    • or OpenID Connect (https://grepr-prod.us.auth0.com/.well-known/openid-configuration)

Query parameters

fileSizeBytesinteger required
format'json' | 'plaintext' required

File format. Valid values: json, plaintext

Response

Presigned URL generated successfully

expiresAtstring

Timestamp when the presigned URL expires

orgIdstring

Organization ID that owns this upload

presignedUrlstring

Presigned URL that can be used to upload files

uploadIdstring

Unique identifier for this upload. Pass it as the uploadId of a grepr-uploaded-log-file-source to read the uploaded file.

Example response

{
  "expiresAt": "2024-01-15T10:30:00Z",
  "orgId": "org-123",
  "presignedUrl": "https://grepr-pipeline-uploads.s3.amazonaws.com/org-123/upload-456/file.json?X-Amz-Algorithm=...",
  "uploadId": "3f2b8c1e-9a4d-4e7b-8c2a-1d5e6f7a8b9c"
}

Changes

No recorded changes to this operation across all 1 revision of this API.