{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-close":{"post":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_close","summary":"Closes a sub-account.","description":"POST /v1/{+name}:close","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","body"],"properties":{"name":{"type":"string","description":"Required. Account to close. Format: platforms/{platform}/accounts/{account_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/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-list":{"get":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_list","summary":"Lists a partial view of sub-accounts for a specific parent account.","description":"GET /v1/{+parent}/accounts","tags":["dev-tools"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"Optional. The maximum number of accounts to include in the response, used for paging. If unspecified, at most 10000 accounts will be…","schema":{"type":"integer","description":"Optional. The maximum number of accounts to include in the response, used for paging. If unspecified, at most 10000 accounts will be…"}},{"name":"pageToken","in":"query","required":false,"description":"Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page.","schema":{"type":"string","description":"Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page."}},{"name":"parent","in":"query","required":true,"description":"Required. Platform who parents the accounts. Format: platforms/{platform}","schema":{"type":"string","description":"Required. Platform who parents the accounts. Format: platforms/{platform}"}}],"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/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-create":{"post":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_create","summary":"Creates a sub-account.","description":"POST /v1/{+parent}/accounts","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"parent":{"type":"string","description":"Required. Platform to create an account for. Format: platforms/{platform}"},"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/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-sites-get":{"get":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_sites_get","summary":"Gets a site from a specified sub-account.","description":"GET /v1/{+name}","tags":["dev-tools"],"parameters":[{"name":"name","in":"query","required":true,"description":"Required. The name of the site to retrieve. Format: platforms/{platform}/accounts/{account}/sites/{site}","schema":{"type":"string","description":"Required. The name of the site to retrieve. Format: platforms/{platform}/accounts/{account}/sites/{site}"}}],"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/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-sites-delete":{"post":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_sites_delete","summary":"Deletes a site from a specified account.","description":"DELETE /v1/{+name}","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Required. The name of the site to delete. Format: platforms/{platform}/accounts/{account}/sites/{site}"}}}}}},"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/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-lookup":{"get":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_lookup","summary":"Looks up information about a sub-account for a specified creation_request_id. If no account exists for the…","description":"GET /v1/{+parent}/accounts:lookup","tags":["dev-tools"],"parameters":[{"name":"creationRequestId","in":"query","required":false,"description":"Optional. The creation_request_id provided when calling createAccount.","schema":{"type":"string","description":"Optional. The creation_request_id provided when calling createAccount."}},{"name":"parent","in":"query","required":true,"description":"Required. Platform who parents the account. Format: platforms/{platform}","schema":{"type":"string","description":"Required. Platform who parents the account. Format: platforms/{platform}"}}],"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/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-events-create":{"post":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_events_create","summary":"Creates an account event.","description":"POST /v1/{+parent}/events","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"parent":{"type":"string","description":"Required. Account to log events about. Format: platforms/{platform}/accounts/{account}"},"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/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-sites-list":{"get":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_sites_list","summary":"Lists sites for a specific account.","description":"GET /v1/{+parent}/sites","tags":["dev-tools"],"parameters":[{"name":"pageSize","in":"query","required":false,"description":"The maximum number of sites to include in the response, used for paging. If unspecified, at most 10000 sites will be returned. The maximum…","schema":{"type":"integer","description":"The maximum number of sites to include in the response, used for paging. If unspecified, at most 10000 sites will be returned. The maximum…"}},{"name":"pageToken","in":"query","required":false,"description":"A page token, received from a previous `ListSites` call. Provide this to retrieve the subsequent page. When paginating, all other…","schema":{"type":"string","description":"A page token, received from a previous `ListSites` call. Provide this to retrieve the subsequent page. When paginating, all other…"}},{"name":"parent","in":"query","required":true,"description":"Required. The account which owns the sites. Format: platforms/{platform}/accounts/{account}","schema":{"type":"string","description":"Required. The account which owns the sites. Format: platforms/{platform}/accounts/{account}"}}],"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/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-sites-create":{"post":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_sites_create","summary":"Creates a site for a specified account.","description":"POST /v1/{+parent}/sites","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["parent","body"],"properties":{"parent":{"type":"string","description":"Required. Account to create site. Format: platforms/{platform}/accounts/{account_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/dev-tools:google-adsenseplatform/adsenseplatform-platforms-accounts-sites-request-review":{"post":{"operationId":"dev_tools_google_adsenseplatform_adsenseplatform_platforms_accounts_sites_request_review","summary":"Requests the review of a site. The site should be in REQUIRES_REVIEW or NEEDS_ATTENTION state. Note: Make…","description":"POST /v1/{+name}:requestReview","tags":["dev-tools"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Required. The name of the site to submit for review. Format: platforms/{platform}/accounts/{account}/sites/{site}"}}}}}},"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"}}}}}}}