Skip to content
StudyFetch API

Materials

Get temporary download URL for material

OpenAPI specification
GET/api/v1/materials/{id}/download-url

Authentication

x-api-key

Request

curl --globoff --request GET \
  --url 'https://api.example.com/api/v1/materials/%3Cid%3E/download-url' \
  --header 'x-api-key: <API_KEY>'

Replace credential and <field> placeholders with your own values. URL placeholders appear as %3Cfield%3E. Review the example values before sending your request.

Replace https://api.example.com with the API server URL.

Parameters

idpath · string · required

Material ID

expiresInquery · number

URL expiration time in seconds (default: 3600)

Responses

200Download URL generated successfully
{
  "type": "object",
  "properties": {
    "downloadUrl": {
      "type": "string",
      "description": "Temporary download URL"
    }
  },
  "required": [
    "downloadUrl"
  ]
}
400Material not stored in S3
404Material not found