{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/analytics:googleapis-script/script-processes-list":{"get":{"operationId":"analytics_googleapis_script_script_processes_list","summary":"List information about processes made by or on behalf of a user, such as process type and current status.","description":"GET /v1/processes","tags":["analytics"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"The maximum number of returned processes per page of results. Defaults to 50.","schema":{"type":"integer","description":"The maximum number of returned processes per page of results. Defaults to 50."}},{"name":"pageToken","in":"query","required":false,"description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous…","schema":{"type":"string","description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous…"}},{"name":"userProcessFilter.deploymentId","in":"query","required":false,"description":"Optional field used to limit returned processes to those originating from projects with a specific deployment ID.","schema":{"type":"string","description":"Optional field used to limit returned processes to those originating from projects with a specific deployment ID."}},{"name":"userProcessFilter.endTime","in":"query","required":false,"description":"Optional field used to limit returned processes to those that completed on or before the given timestamp.","schema":{"type":"string","description":"Optional field used to limit returned processes to those that completed on or before the given timestamp."}},{"name":"userProcessFilter.functionName","in":"query","required":false,"description":"Optional field used to limit returned processes to those originating from a script function with the given function name.","schema":{"type":"string","description":"Optional field used to limit returned processes to those originating from a script function with the given function name."}},{"name":"userProcessFilter.projectName","in":"query","required":false,"description":"Optional field used to limit returned processes to those originating from projects with project names containing a specific string.","schema":{"type":"string","description":"Optional field used to limit returned processes to those originating from projects with project names containing a specific string."}},{"name":"userProcessFilter.scriptId","in":"query","required":false,"description":"Optional field used to limit returned processes to those originating from projects with a specific script ID.","schema":{"type":"string","description":"Optional field used to limit returned processes to those originating from projects with a specific script ID."}},{"name":"userProcessFilter.startTime","in":"query","required":false,"description":"Optional field used to limit returned processes to those that were started on or after the given timestamp.","schema":{"type":"string","description":"Optional field used to limit returned processes to those that were started on or after the given timestamp."}},{"name":"userProcessFilter.statuses","in":"query","required":false,"description":"Optional field used to limit returned processes to those having one of the specified process statuses.","schema":{"type":"string","enum":["PROCESS_STATUS_UNSPECIFIED","RUNNING","PAUSED","COMPLETED","CANCELED","FAILED","TIMED_OUT","UNKNOWN","DELAYED","EXECUTION_DISABLED"],"description":"Optional field used to limit returned processes to those having one of the specified process statuses."}},{"name":"userProcessFilter.types","in":"query","required":false,"description":"Optional field used to limit returned processes to those having one of the specified process types.","schema":{"type":"string","enum":["PROCESS_TYPE_UNSPECIFIED","ADD_ON","EXECUTION_API","TIME_DRIVEN","TRIGGER","WEBAPP","EDITOR","SIMPLE_TRIGGER","MENU","BATCH_TASK"],"description":"Optional field used to limit returned processes to those having one of the specified process types."}},{"name":"userProcessFilter.userAccessLevels","in":"query","required":false,"description":"Optional field used to limit returned processes to those having one of the specified user access levels.","schema":{"type":"string","enum":["USER_ACCESS_LEVEL_UNSPECIFIED","NONE","READ","WRITE","OWNER"],"description":"Optional field used to limit returned processes to those having one of the specified user access levels."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-processes-list-script-processes":{"get":{"operationId":"analytics_googleapis_script_script_processes_list_script_processes","summary":"List information about a script's executed processes, such as process type and current status.","description":"GET /v1/processes:listScriptProcesses","tags":["analytics"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"The maximum number of returned processes per page of results. Defaults to 50.","schema":{"type":"integer","description":"The maximum number of returned processes per page of results. Defaults to 50."}},{"name":"pageToken","in":"query","required":false,"description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous…","schema":{"type":"string","description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous…"}},{"name":"scriptId","in":"query","required":false,"description":"The script ID of the project whose processes are listed.","schema":{"type":"string","description":"The script ID of the project whose processes are listed."}},{"name":"scriptProcessFilter.deploymentId","in":"query","required":false,"description":"Optional field used to limit returned processes to those originating from projects with a specific deployment ID.","schema":{"type":"string","description":"Optional field used to limit returned processes to those originating from projects with a specific deployment ID."}},{"name":"scriptProcessFilter.endTime","in":"query","required":false,"description":"Optional field used to limit returned processes to those that completed on or before the given timestamp.","schema":{"type":"string","description":"Optional field used to limit returned processes to those that completed on or before the given timestamp."}},{"name":"scriptProcessFilter.functionName","in":"query","required":false,"description":"Optional field used to limit returned processes to those originating from a script function with the given function name.","schema":{"type":"string","description":"Optional field used to limit returned processes to those originating from a script function with the given function name."}},{"name":"scriptProcessFilter.startTime","in":"query","required":false,"description":"Optional field used to limit returned processes to those that were started on or after the given timestamp.","schema":{"type":"string","description":"Optional field used to limit returned processes to those that were started on or after the given timestamp."}},{"name":"scriptProcessFilter.statuses","in":"query","required":false,"description":"Optional field used to limit returned processes to those having one of the specified process statuses.","schema":{"type":"string","enum":["PROCESS_STATUS_UNSPECIFIED","RUNNING","PAUSED","COMPLETED","CANCELED","FAILED","TIMED_OUT","UNKNOWN","DELAYED","EXECUTION_DISABLED"],"description":"Optional field used to limit returned processes to those having one of the specified process statuses."}},{"name":"scriptProcessFilter.types","in":"query","required":false,"description":"Optional field used to limit returned processes to those having one of the specified process types.","schema":{"type":"string","enum":["PROCESS_TYPE_UNSPECIFIED","ADD_ON","EXECUTION_API","TIME_DRIVEN","TRIGGER","WEBAPP","EDITOR","SIMPLE_TRIGGER","MENU","BATCH_TASK"],"description":"Optional field used to limit returned processes to those having one of the specified process types."}},{"name":"scriptProcessFilter.userAccessLevels","in":"query","required":false,"description":"Optional field used to limit returned processes to those having one of the specified user access levels.","schema":{"type":"string","enum":["USER_ACCESS_LEVEL_UNSPECIFIED","NONE","READ","WRITE","OWNER"],"description":"Optional field used to limit returned processes to those having one of the specified user access levels."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-create":{"post":{"operationId":"analytics_googleapis_script_script_projects_create","summary":"Creates a new, empty script project with no script files and a base manifest file.","description":"POST /v1/projects","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-get":{"get":{"operationId":"analytics_googleapis_script_script_projects_get","summary":"Gets a script project's metadata.","description":"GET /v1/projects/{scriptId}","tags":["analytics"],"parameters":[{"name":"scriptId","in":"query","required":true,"description":"The script project's Drive ID.","schema":{"type":"string","description":"The script project's Drive ID."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-get-content":{"get":{"operationId":"analytics_googleapis_script_script_projects_get_content","summary":"Gets the content of the script project, including the code source and metadata for each script file.","description":"GET /v1/projects/{scriptId}/content","tags":["analytics"],"parameters":[{"name":"scriptId","in":"query","required":true,"description":"The script project's Drive ID.","schema":{"type":"string","description":"The script project's Drive ID."}},{"name":"versionNumber","in":"query","required":false,"description":"The version number of the project to retrieve. If not provided, the project's HEAD version is returned.","schema":{"type":"integer","description":"The version number of the project to retrieve. If not provided, the project's HEAD version is returned."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-update-content":{"post":{"operationId":"analytics_googleapis_script_script_projects_update_content","summary":"Updates the content of the specified script project. This content is stored as the HEAD version, and is used…","description":"PUT /v1/projects/{scriptId}/content","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["scriptId","body"],"properties":{"scriptId":{"type":"string","description":"The script project's Drive ID."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-get-metrics":{"get":{"operationId":"analytics_googleapis_script_script_projects_get_metrics","summary":"Get metrics data for scripts, such as number of executions and active users.","description":"GET /v1/projects/{scriptId}/metrics","tags":["analytics"],"parameters":[{"name":"metricsFilter.deploymentId","in":"query","required":false,"description":"Optional field indicating a specific deployment to retrieve metrics from.","schema":{"type":"string","description":"Optional field indicating a specific deployment to retrieve metrics from."}},{"name":"metricsGranularity","in":"query","required":false,"description":"Required field indicating what granularity of metrics are returned.","schema":{"type":"string","enum":["UNSPECIFIED_GRANULARITY","WEEKLY","DAILY"],"description":"Required field indicating what granularity of metrics are returned."}},{"name":"scriptId","in":"query","required":true,"description":"Required field indicating the script to get metrics for.","schema":{"type":"string","description":"Required field indicating the script to get metrics for."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-deployments-list":{"get":{"operationId":"analytics_googleapis_script_script_projects_deployments_list","summary":"Lists the deployments of an Apps Script project.","description":"GET /v1/projects/{scriptId}/deployments","tags":["analytics"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"The maximum number of deployments on each returned page. Defaults to 50.","schema":{"type":"integer","description":"The maximum number of deployments on each returned page. Defaults to 50."}},{"name":"pageToken","in":"query","required":false,"description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous…","schema":{"type":"string","description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous…"}},{"name":"scriptId","in":"query","required":true,"description":"The script project's Drive ID.","schema":{"type":"string","description":"The script project's Drive ID."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-deployments-create":{"post":{"operationId":"analytics_googleapis_script_script_projects_deployments_create","summary":"Creates a deployment of an Apps Script project.","description":"POST /v1/projects/{scriptId}/deployments","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["scriptId","body"],"properties":{"scriptId":{"type":"string","description":"The script project's Drive ID."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-deployments-get":{"get":{"operationId":"analytics_googleapis_script_script_projects_deployments_get","summary":"Gets a deployment of an Apps Script project.","description":"GET /v1/projects/{scriptId}/deployments/{deploymentId}","tags":["analytics"],"parameters":[{"name":"deploymentId","in":"query","required":true,"description":"The deployment ID.","schema":{"type":"string","description":"The deployment ID."}},{"name":"scriptId","in":"query","required":true,"description":"The script project's Drive ID.","schema":{"type":"string","description":"The script project's Drive ID."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-deployments-update":{"post":{"operationId":"analytics_googleapis_script_script_projects_deployments_update","summary":"Updates a deployment of an Apps Script project.","description":"PUT /v1/projects/{scriptId}/deployments/{deploymentId}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["deploymentId","scriptId","body"],"properties":{"deploymentId":{"type":"string","description":"The deployment ID for this deployment."},"scriptId":{"type":"string","description":"The script project's Drive ID."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-deployments-delete":{"post":{"operationId":"analytics_googleapis_script_script_projects_deployments_delete","summary":"Deletes a deployment of an Apps Script project.","description":"DELETE /v1/projects/{scriptId}/deployments/{deploymentId}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["deploymentId","scriptId"],"properties":{"deploymentId":{"type":"string","description":"The deployment ID to be undeployed."},"scriptId":{"type":"string","description":"The script project's Drive ID."}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-versions-list":{"get":{"operationId":"analytics_googleapis_script_script_projects_versions_list","summary":"List the versions of a script project.","description":"GET /v1/projects/{scriptId}/versions","tags":["analytics"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"The maximum number of versions on each returned page. Defaults to 50.","schema":{"type":"integer","description":"The maximum number of versions on each returned page. Defaults to 50."}},{"name":"pageToken","in":"query","required":false,"description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous…","schema":{"type":"string","description":"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous…"}},{"name":"scriptId","in":"query","required":true,"description":"The script project's Drive ID.","schema":{"type":"string","description":"The script project's Drive ID."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-versions-create":{"post":{"operationId":"analytics_googleapis_script_script_projects_versions_create","summary":"Creates a new immutable version using the current code, with a unique version number.","description":"POST /v1/projects/{scriptId}/versions","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["scriptId","body"],"properties":{"scriptId":{"type":"string","description":"The script project's Drive ID."},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-projects-versions-get":{"get":{"operationId":"analytics_googleapis_script_script_projects_versions_get","summary":"Gets a version of a script project.","description":"GET /v1/projects/{scriptId}/versions/{versionNumber}","tags":["analytics"],"parameters":[{"name":"scriptId","in":"query","required":true,"description":"The script project's Drive ID.","schema":{"type":"string","description":"The script project's Drive ID."}},{"name":"versionNumber","in":"query","required":true,"description":"The version number.","schema":{"type":"integer","description":"The version number."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/analytics:googleapis-script/script-scripts-run":{"post":{"operationId":"analytics_googleapis_script_script_scripts_run","summary":"POST /v1/scripts/{scriptId}:run","description":"POST /v1/scripts/{scriptId}:run","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["scriptId","body"],"properties":{"scriptId":{"type":"string","description":"The script ID of the script to be executed. Find the script ID on the **Project settings** page under \"IDs.\" As multiple executable APIs…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}