Skip to Content
Images

Create Image Upload Url

POST
/v0/images/upload-url

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Request Body

application/json
  1. body
type*string
Value in"user-avatar""organization-logo""project-icon"
organizationId?string|null
projectId?string|null

Response Body

Success

application/json
  1. response
imageId*string
uploadURL*string
Example Request
curl -X POST 'https://api.faststats.dev/v0/images/upload-url' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "user-avatar"
}'
Example Response
{
  "imageId": "string",
  "uploadURL": "string"
}