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 URLhttps://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
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.