openapi: 3.1.0 info: title: Contentstack Analytics Accounts File Uploads API description: The Contentstack Analytics API provides access to usage and performance metrics for CMS, Launch, and Automate products within a Contentstack organization. Developers can retrieve analytics data programmatically to build custom dashboards, monitor content delivery performance, and track platform usage against plan limits. The API returns structured data suitable for aggregation with external analytics and business intelligence tools. Access is restricted to organization Owners and Admins. Requests use async job-based processing where initial POST calls queue the job and a subsequent GET call retrieves the results. version: v2 contact: name: Contentstack Support url: https://www.contentstack.com/contact termsOfService: https://www.contentstack.com/legal/terms-of-service servers: - url: https://api.contentstack.io description: AWS North America Production Server - url: https://eu-api.contentstack.com description: AWS Europe Production Server - url: https://au-api.contentstack.com description: AWS Australia Production Server security: - bearerAuth: [] - authtokenAuth: [] tags: - name: File Uploads description: File upload endpoints provide pre-signed URLs for securely uploading build artifacts to Contentstack Launch infrastructure before triggering a deployment. paths: /projects/upload-url: get: operationId: getProjectUploadUrl summary: Get project upload URL description: Generates a pre-signed URL valid for 10 minutes for uploading a project build artifact file. Use this URL to upload your build package before triggering a deployment. tags: - File Uploads responses: '200': description: A pre-signed upload URL for project files. content: application/json: schema: $ref: '#/components/schemas/UploadUrlResponse' '401': $ref: '#/components/responses/Unauthorized' components: responses: Unauthorized: description: Authentication credentials are missing or invalid. content: application/json: schema: $ref: '#/components/schemas/Error' schemas: Error: type: object description: Standard error response. properties: message: type: string description: Human-readable description of the error. error_code: type: integer description: Numeric error code. UploadUrlResponse: type: object description: A pre-signed URL for uploading build artifacts. properties: upload_url: type: string format: uri description: The pre-signed URL to use for uploading the build artifact file. upload_uid: type: string description: Unique identifier for this upload, used when creating a deployment. expires_at: type: string format: date-time description: ISO 8601 timestamp when the pre-signed URL expires (10 minutes). securitySchemes: bearerAuth: type: http scheme: bearer description: OAuth 2.0 Bearer token (M2M) with analytics access. authtokenAuth: type: apiKey in: header name: authtoken description: Contentstack user authtoken. Only organization Owners and Admins can access analytics. externalDocs: description: Contentstack Analytics API Documentation url: https://www.contentstack.com/docs/developers/apis/analytics-api