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
curl -X POST "https://example.com/v0/images/upload-url" \  -H "Content-Type: application/json" \  -d '{    "type": "user-avatar"  }'
{  "imageId": "string",  "uploadURL": "string"}