{ "openapi": "3.1.2", "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", "info": { "title": "Agify Universal API", "version": "0.0.1", "description": "Predict a statistical age estimate from a first or full name, optionally scoped to a country." }, "servers": [ { "url": "https://connect.mindcloud.co" } ], "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/agify/latest" }, "security": [ { "bearerAuth": [] } ], "paths": { "/v1/universal/agify/latest/actions/predict-age": { "get": { "operationId": "agify.predict-age", "summary": "Predict Age", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/agify/latest/actions/predict-age" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "name", "in": "query", "required": true, "description": "First or full name to use for the age prediction.", "schema": { "type": "string", "description": "First or full name to use for the age prediction." } }, { "name": "country_id", "in": "query", "required": false, "description": "Optional ISO 3166-1 alpha-2 country code to scope the prediction.", "schema": { "type": "string", "description": "Optional ISO 3166-1 alpha-2 country code to scope the prediction." } }, { "name": "fields", "in": "query", "required": false, "description": "Comma-separated response fields to include.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/agify/latest/actions/predict-ages": { "get": { "operationId": "agify.predict-ages", "summary": "Predict Ages", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/agify/latest/actions/predict-ages" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "names[]", "in": "query", "required": true, "description": "Up to 10 names to predict in one request.", "schema": { "type": "array", "items": { "type": "string" }, "description": "Up to 10 names to predict in one request." }, "style": "form", "explode": false }, { "name": "country_id", "in": "query", "required": false, "description": "Optional ISO 3166-1 alpha-2 country code to scope every prediction in the batch.", "schema": { "type": "string", "description": "Optional ISO 3166-1 alpha-2 country code to scope every prediction in the batch." } }, { "name": "fields", "in": "query", "required": false, "description": "Comma-separated response fields to include.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } } }, "components": { "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer", "description": "A MindCloud API key." } } } }