{"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/open-data:phantauth/post-client":{"post":{"operationId":"open_data_phantauth_post_client","summary":"Create a Client Selfie","description":"POST /client","tags":["open-data"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"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":"live"}},"/v1/open-data:phantauth/get-client-client-id":{"get":{"operationId":"open_data_phantauth_get_client_client_id","summary":"Get a Client","description":"GET /client/{client_id}","tags":["open-data"],"parameters":[{"name":"client_id","in":"query","required":true,"description":"A client ID or email.","schema":{"type":"string","description":"A client ID or email."}}],"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":"live"}},"/v1/open-data:phantauth/get-client-client-id-token-kind":{"get":{"operationId":"open_data_phantauth_get_client_client_id_token_kind","summary":"Get a Client Token","description":"GET /client/{client_id}/token/{kind}","tags":["open-data"],"parameters":[{"name":"client_id","in":"query","required":true,"description":"A client ID or email.","schema":{"type":"string","description":"A client ID or email."}},{"name":"kind","in":"query","required":true,"description":"Token type","schema":{"type":"string","enum":["'registration'","'selfie'","'plain'"],"description":"Token type"}}],"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":"live"}},"/v1/open-data:phantauth/get-domain-domainname":{"get":{"operationId":"open_data_phantauth_get_domain_domainname","summary":"Get a Domain","description":"GET /domain/{domainname}","tags":["open-data"],"parameters":[{"name":"domainname","in":"query","required":true,"description":"The domain ID integrated in the `sub` property.","schema":{"type":"string","description":"The domain ID integrated in the `sub` property."}}],"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":"live"}},"/v1/open-data:phantauth/get-fleet-fleetname":{"get":{"operationId":"open_data_phantauth_get_fleet_fleetname","summary":"Get a Fleet","description":"GET /fleet/{fleetname}","tags":["open-data"],"parameters":[{"name":"fleetname","in":"query","required":true,"description":"The identifier or email address of the fleet; it is integrated in the `sub` property and is the basis of the other generated properties.","schema":{"type":"string","description":"The identifier or email address of the fleet; it is integrated in the `sub` property and is the basis of the other generated properties."}}],"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":"live"}},"/v1/open-data:phantauth/get-team-teamname":{"get":{"operationId":"open_data_phantauth_get_team_teamname","summary":"Get a Team","description":"GET /team/{teamname}","tags":["open-data"],"parameters":[{"name":"teamname","in":"query","required":true,"description":"The identifier or email address of the team; it is integrated in the `sub` property and is the basis of the other generated properties.","schema":{"type":"string","description":"The identifier or email address of the team; it is integrated in the `sub` property and is the basis of the other generated properties."}}],"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":"live"}},"/v1/open-data:phantauth/get-tenant-tenantname":{"get":{"operationId":"open_data_phantauth_get_tenant_tenantname","summary":"Get a Tenant","description":"GET /tenant/{tenantname}","tags":["open-data"],"parameters":[{"name":"tenantname","in":"query","required":true,"description":"The tenant ID integrated in the `sub` property.","schema":{"type":"string","description":"The tenant ID integrated in the `sub` property."}}],"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":"live"}},"/v1/open-data:phantauth/post-user":{"post":{"operationId":"open_data_phantauth_post_user","summary":"Create a User Selfie","description":"POST /user","tags":["open-data"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"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":"live"}},"/v1/open-data:phantauth/get-user-username":{"get":{"operationId":"open_data_phantauth_get_user_username","summary":"Get a User","description":"GET /user/{username}","tags":["open-data"],"parameters":[{"name":"username","in":"query","required":true,"description":"The username or email used for generation purposes.","schema":{"type":"string","description":"The username or email used for generation purposes."}}],"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":"live"}},"/v1/open-data:phantauth/get-user-username-token-kind":{"get":{"operationId":"open_data_phantauth_get_user_username_token_kind","summary":"Get a User Token","description":"GET /user/{username}/token/{kind}","tags":["open-data"],"parameters":[{"name":"username","in":"query","required":true,"description":"A username or email.","schema":{"type":"string","description":"A username or email."}},{"name":"kind","in":"query","required":true,"description":"Token type","schema":{"type":"string","enum":["'access'","'refresh'","'authorization'","'id'","'selfie'","'plain'"],"description":"Token type"}},{"name":"scope","in":"query","required":false,"description":"OpenID Connect scope","schema":{"type":"string","description":"OpenID Connect scope"}}],"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":"live"}}},"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"}}}}}}}