{"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/ai:geneea/get-info":{"get":{"operationId":"ai_geneea_get_info","summary":"Information about current user account","description":"GET /account","tags":["ai"],"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"}},"/v1/ai:geneea/correction-get":{"get":{"operationId":"ai_geneea_correction_get","summary":"Performs text correction (diacritization) on the given document","description":"GET /s1/correction","tags":["ai"],"parameters":[{"name":"id","in":"query","required":false,"description":"document ID","schema":{"type":"string","description":"document ID"}},{"name":"text","in":"query","required":false,"description":"raw document text","schema":{"type":"string","description":"raw document text"}},{"name":"url","in":"query","required":false,"description":"document URL","schema":{"type":"string","description":"document URL"}},{"name":"extractor","in":"query","required":false,"description":"document extractor","schema":{"type":"string","enum":["default","article","keep-everything"],"description":"document extractor"}},{"name":"language","in":"query","required":false,"description":"document language","schema":{"type":"string","description":"document language"}},{"name":"returnTextInfo","in":"query","required":false,"schema":{"type":"boolean"}}],"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/ai:geneea/correction-post":{"post":{"operationId":"ai_geneea_correction_post","summary":"Performs text correction (diacritization) on the given document","description":"POST /s1/correction","tags":["ai"],"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":"byok"}},"/v1/ai:geneea/entities-get":{"get":{"operationId":"ai_geneea_entities_get","summary":"Performs named-entity recognition on the given document","description":"GET /s1/entities","tags":["ai"],"parameters":[{"name":"id","in":"query","required":false,"description":"document ID","schema":{"type":"string","description":"document ID"}},{"name":"text","in":"query","required":false,"description":"raw document text","schema":{"type":"string","description":"raw document text"}},{"name":"url","in":"query","required":false,"description":"document URL","schema":{"type":"string","description":"document URL"}},{"name":"extractor","in":"query","required":false,"description":"document extractor","schema":{"type":"string","enum":["default","article","keep-everything"],"description":"document extractor"}},{"name":"language","in":"query","required":false,"description":"document language","schema":{"type":"string","description":"document language"}},{"name":"returnTextInfo","in":"query","required":false,"schema":{"type":"boolean"}}],"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/ai:geneea/entities-post":{"post":{"operationId":"ai_geneea_entities_post","summary":"Performs named-entity recognition on the given document","description":"POST /s1/entities","tags":["ai"],"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":"byok"}},"/v1/ai:geneea/lemmatize-get":{"get":{"operationId":"ai_geneea_lemmatize_get","summary":"Performs lemmatization on the given document","description":"GET /s1/lemmatize","tags":["ai"],"parameters":[{"name":"id","in":"query","required":false,"description":"document ID","schema":{"type":"string","description":"document ID"}},{"name":"text","in":"query","required":false,"description":"raw document text","schema":{"type":"string","description":"raw document text"}},{"name":"url","in":"query","required":false,"description":"document URL","schema":{"type":"string","description":"document URL"}},{"name":"extractor","in":"query","required":false,"description":"document extractor","schema":{"type":"string","enum":["default","article","keep-everything"],"description":"document extractor"}},{"name":"language","in":"query","required":false,"description":"document language","schema":{"type":"string","description":"document language"}},{"name":"returnTextInfo","in":"query","required":false,"schema":{"type":"boolean"}}],"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/ai:geneea/lemmatize-post":{"post":{"operationId":"ai_geneea_lemmatize_post","summary":"Performs lemmatization on the given document","description":"POST /s1/lemmatize","tags":["ai"],"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":"byok"}},"/v1/ai:geneea/sentiment-get":{"get":{"operationId":"ai_geneea_sentiment_get","summary":"Performs sentiment analysis on the given document","description":"GET /s1/sentiment","tags":["ai"],"parameters":[{"name":"id","in":"query","required":false,"description":"document ID","schema":{"type":"string","description":"document ID"}},{"name":"text","in":"query","required":false,"description":"raw document text","schema":{"type":"string","description":"raw document text"}},{"name":"url","in":"query","required":false,"description":"document URL","schema":{"type":"string","description":"document URL"}},{"name":"extractor","in":"query","required":false,"description":"document extractor","schema":{"type":"string","enum":["default","article","keep-everything"],"description":"document extractor"}},{"name":"language","in":"query","required":false,"description":"document language","schema":{"type":"string","description":"document language"}},{"name":"returnTextInfo","in":"query","required":false,"schema":{"type":"boolean"}}],"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/ai:geneea/sentiment-post":{"post":{"operationId":"ai_geneea_sentiment_post","summary":"Performs sentiment analysis on the given document","description":"POST /s1/sentiment","tags":["ai"],"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":"byok"}},"/v1/ai:geneea/topic-get":{"get":{"operationId":"ai_geneea_topic_get","summary":"Performs topic detection on the given document","description":"GET /s1/topic","tags":["ai"],"parameters":[{"name":"id","in":"query","required":false,"description":"document ID","schema":{"type":"string","description":"document ID"}},{"name":"text","in":"query","required":false,"description":"raw document text","schema":{"type":"string","description":"raw document text"}},{"name":"url","in":"query","required":false,"description":"document URL","schema":{"type":"string","description":"document URL"}},{"name":"extractor","in":"query","required":false,"description":"document extractor","schema":{"type":"string","enum":["default","article","keep-everything"],"description":"document extractor"}},{"name":"language","in":"query","required":false,"description":"document language","schema":{"type":"string","description":"document language"}},{"name":"returnTextInfo","in":"query","required":false,"schema":{"type":"boolean"}}],"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/ai:geneea/topic-post":{"post":{"operationId":"ai_geneea_topic_post","summary":"Performs topic detection on the given document","description":"POST /s1/topic","tags":["ai"],"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":"byok"}},"/v1/ai:geneea/status":{"get":{"operationId":"ai_geneea_status","summary":"Gets status of the Interpretor service","description":"GET /status","tags":["ai"],"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"}}}}}}}