{"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/communication:sendgrid-account-provisioning-v3/list-account":{"get":{"operationId":"communication_sendgrid_account_provisioning_v3_list_account","summary":"Get all accounts","description":"GET /v3/partners/accounts","tags":["communication"],"parameters":[{"name":"offset","in":"query","required":false,"description":"The last item successfully retrieved","schema":{"type":"string","description":"The last item successfully retrieved"},"example":"sg2a2bcd3ef4ab5c67d8efab91c01de2fa"},{"name":"limit","in":"query","required":false,"description":"The number of items to return","schema":{"type":"integer","default":10,"description":"The number of items to return"},"example":2}],"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/communication:sendgrid-account-provisioning-v3/create-account":{"post":{"operationId":"communication_sendgrid_account_provisioning_v3_create_account","summary":"Create an account","description":"POST /v3/partners/accounts","tags":["communication"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["body"],"properties":{"T-Test-Account":{"type":"string","description":"**OPTIONAL** Custom request header provided ONLY for a test 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/communication:sendgrid-account-provisioning-v3/delete-account":{"post":{"operationId":"communication_sendgrid_account_provisioning_v3_delete_account","summary":"Delete an account","description":"DELETE /v3/partners/accounts/{accountID}","tags":["communication"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["accountID"],"properties":{"accountID":{"type":"string","description":"Twilio SendGrid account 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/communication:sendgrid-account-provisioning-v3/list-account-offering":{"get":{"operationId":"communication_sendgrid_account_provisioning_v3_list_account_offering","summary":"Get account offerings","description":"GET /v3/partners/accounts/{accountID}/offerings","tags":["communication"],"parameters":[{"name":"accountID","in":"query","required":true,"description":"Twilio SendGrid account ID","schema":{"type":"string","description":"Twilio SendGrid account ID"},"example":"sg2a2bcd3ef4ab5c67d8efab91c01de2fa"}],"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/communication:sendgrid-account-provisioning-v3/update-account-offering":{"post":{"operationId":"communication_sendgrid_account_provisioning_v3_update_account_offering","summary":"Update account offerings","description":"PUT /v3/partners/accounts/{accountID}/offerings","tags":["communication"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["accountID","body"],"properties":{"accountID":{"type":"string","description":"Twilio SendGrid 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/communication:sendgrid-account-provisioning-v3/authenticate-account":{"post":{"operationId":"communication_sendgrid_account_provisioning_v3_authenticate_account","summary":"Authenticate an account with single sign on","description":"POST /v3/partners/accounts/{accountID}/sso","tags":["communication"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["accountID"],"properties":{"accountID":{"type":"string","description":"Twilio SendGrid account 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/communication:sendgrid-account-provisioning-v3/get-account-state":{"get":{"operationId":"communication_sendgrid_account_provisioning_v3_get_account_state","summary":"Get an account's state","description":"GET /v3/partners/accounts/{accountID}/state","tags":["communication"],"parameters":[{"name":"accountID","in":"query","required":true,"description":"Twilio SendGrid account ID","schema":{"type":"string","description":"Twilio SendGrid account ID"},"example":"sg2a2bcd3ef4ab5c67d8efab91c01de2fa"}],"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/communication:sendgrid-account-provisioning-v3/update-account-state":{"post":{"operationId":"communication_sendgrid_account_provisioning_v3_update_account_state","summary":"Update an account's state","description":"PUT /v3/partners/accounts/{accountID}/state","tags":["communication"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["accountID","body"],"properties":{"accountID":{"type":"string","description":"Twilio SendGrid 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/communication:sendgrid-account-provisioning-v3/list-offering":{"get":{"operationId":"communication_sendgrid_account_provisioning_v3_list_offering","summary":"Get all available offerings","description":"GET /v3/partners/offerings","tags":["communication"],"parameters":[],"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"}}},"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"}}}}}}}