{"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-apikeys/apikeys-keys-lookup-key":{"get":{"operationId":"analytics_googleapis_apikeys_apikeys_keys_lookup_key","summary":"Find the parent project and resource name of the API key that matches the key string in the request. If the…","description":"GET /v2/keys:lookupKey","tags":["analytics"],"parameters":[{"name":"keyString","in":"query","required":false,"description":"Required. Finds the project that owns the key string value.","schema":{"type":"string","description":"Required. Finds the project that owns the key string value."}}],"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-apikeys/apikeys-projects-locations-keys-get":{"get":{"operationId":"analytics_googleapis_apikeys_apikeys_projects_locations_keys_get","summary":"Gets the metadata for an API key. The key string of the API key isn't included in the response. NOTE: Key is…","description":"GET /v2/{+name}","tags":["analytics"],"parameters":[{"name":"name","in":"query","required":true,"description":"Required. The resource name of the API key to get.","schema":{"type":"string","description":"Required. The resource name of the API key to get."}}],"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-apikeys/apikeys-projects-locations-keys-patch":{"post":{"operationId":"analytics_googleapis_apikeys_apikeys_projects_locations_keys_patch","summary":"Patches the modifiable fields of an API key. The key string of the API key isn't included in the response.…","description":"PATCH /v2/{+name}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"checkExistingUsage":{"type":"string","enum":["CHECK_EXISTING_USAGE_UNSPECIFIED","SKIP","CHECK"],"description":"Optional. Defines the behavior for checking existing usage when updating a key."},"name":{"type":"string","description":"Identifier. The resource name of the key. The `name` has the form: `projects//locations/global/keys/`. For example:…"},"updateMask":{"type":"string","description":"The field mask specifies which fields to be updated as part of this request. All other fields are ignored. Mutable fields are:…"},"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-apikeys/apikeys-projects-locations-keys-delete":{"post":{"operationId":"analytics_googleapis_apikeys_apikeys_projects_locations_keys_delete","summary":"Deletes an API key. Deleted key can be retrieved within 30 days of deletion. Afterward, key will be purged…","description":"DELETE /v2/{+name}","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"checkExistingUsage":{"type":"string","enum":["CHECK_EXISTING_USAGE_UNSPECIFIED","SKIP","CHECK"],"description":"Optional. Defines the behavior for checking existing usage when deleting a key."},"etag":{"type":"string","description":"Optional. The etag known to the client for the expected state of the key. This is to be used for optimistic concurrency."},"name":{"type":"string","description":"Required. The resource name of the API key to be deleted."}}}}}},"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-apikeys/apikeys-projects-locations-keys-list":{"get":{"operationId":"analytics_googleapis_apikeys_apikeys_projects_locations_keys_list","summary":"Lists the API keys owned by a project. The key string of the API key isn't included in the response. NOTE:…","description":"GET /v2/{+parent}/keys","tags":["analytics"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"Optional. Specifies the maximum number of results to be returned at a time.","schema":{"type":"integer","description":"Optional. Specifies the maximum number of results to be returned at a time."}},{"name":"pageToken","in":"query","required":false,"description":"Optional. Requests a specific page of results.","schema":{"type":"string","description":"Optional. Requests a specific page of results."}},{"name":"parent","in":"query","required":true,"description":"Required. Lists all API keys associated with this project. The parent field must be in format of \"projects//locations/global\".","schema":{"type":"string","description":"Required. Lists all API keys associated with this project. The parent field must be in format of \"projects//locations/global\"."}},{"name":"showDeleted","in":"query","required":false,"description":"Optional. Indicate that keys deleted in the past 30 days should also be returned.","schema":{"type":"boolean","description":"Optional. Indicate that keys deleted in the past 30 days should also be 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-apikeys/apikeys-projects-locations-keys-create":{"post":{"operationId":"analytics_googleapis_apikeys_apikeys_projects_locations_keys_create","summary":"Creates a new API key. NOTE: Key is a global resource; hence the only supported value for location is…","description":"POST /v2/{+parent}/keys","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"keyId":{"type":"string","description":"User specified key id (optional). If specified, it will become the final component of the key resource name. The id must be unique within…"},"parent":{"type":"string","description":"Required. The project in which the API key is created. The parent field must be in format of \"projects//locations/global\"."},"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-apikeys/apikeys-projects-locations-keys-get-key-string":{"get":{"operationId":"analytics_googleapis_apikeys_apikeys_projects_locations_keys_get_key_string","summary":"Get the key string for an API key. NOTE: Key is a global resource; hence the only supported value for…","description":"GET /v2/{+name}/keyString","tags":["analytics"],"parameters":[{"name":"name","in":"query","required":true,"description":"Required. The resource name of the API key to be retrieved.","schema":{"type":"string","description":"Required. The resource name of the API key to be retrieved."}}],"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-apikeys/apikeys-projects-locations-keys-undelete":{"post":{"operationId":"analytics_googleapis_apikeys_apikeys_projects_locations_keys_undelete","summary":"Undeletes an API key which was deleted within 30 days. NOTE: Key is a global resource; hence the only…","description":"POST /v2/{+name}:undelete","tags":["analytics"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"Required. The resource name of the API key to be undeleted."},"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"}}}}}}}