Download OpenAPI specification:Download
Persona Predict API developer documentation. To test the service's features, you must request a login and password to access the token
via email: [email protected] or using the Form.
Persona Predict is an innovative service by NeuroQuest AI that leverages text analysis and artificial intelligence to unveil the personality of an author based on their written content. Our tool quantifies personality traits according to the Big Five Factors (Openness, Conscientiousness, Extroversion, Agreeableness, and Neuroticism), along with their respective sub-facets. This enables businesses to personalize interactions, enhance employee engagement, and optimize customer relationships more effectively. Transform your text data into valuable personality insights with NeuroQuest AI's Persona Predict.
This API is documented in OpenAPI format. In addition to the standard OpenAPI syntax, we use some vendor extensions.
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with W3C spec. And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
Authentication Method: We adhere to the OAuth2 standard for authentication. To gain access to the service, you will need to provide a valid username and password to obtain an access token.
Token Expiry: The access token has a duration of 1 hour. After this period, you have the option to either refresh the token or log in again to continue using the service effectively.
In addition to the API specification, we provide several examples of using NeuroQuest AI products at: Hands-on with Persona Predict
Provide your access credentials, using your email and password that were provided.
Return of the user object after login
string <email> User email address | |
password | string <password> Your access password |
{- "password": "my-password"
}
{- "user_id": "MJumNgU0iud90UsEtohNeh6g0ju1",
- "token": "string",
- "refresh_token": "string",
- "expires_in": "string",
- "products": { }
}
Closes the user session on the service.
email required | string User email address (login) |
curl -X GET https://api-persona-predict.neuroquest.ai/api/v2/auth/logout?email=morpheus@neuroquest.ai \ -H "Content-Type: application/json" \ -H "token: my-token"
{- "code": 200,
- "status": "success",
- "data": { }
}
curl -X GET https://api-persona-predict.neuroquest.ai/api/v2/health/check \ -H "Content-Type: application/json" \ -H "token: my-token"
{- "env": "prod",
- "service": "available",
- "uptime": "string",
- "provider": { }
}
Some points to keep in mind before sending your text:
- Ideally, the text should contain more than 1000 words to create a stronger and more reliable analysis.
- The text sent to the model must have been genuinely prepared by the author.
- It is possible to create the analysis in background, just provide 'task: true', the 'task_id' will be returned, which can be found in: /predict/task/status.
Returns the object with predictive analysis
name | string The name of the person author of the text |
essay | string The author's original text |
domain | string Use 'ALL' models, or a specific one like 'O', 'C', 'E', 'A', 'N' |
task | boolean If 'true' run the process in background |
{- "name": "Morpheus",
- "essay": "Throughout my career as a Director...",
- "domain": "ALL",
- "task": false
}
{- "document_id": "SRjTG8LE1REyWuOtZ01r",
- "predict_id": "7d4fc870-57a9-4d65-88d5-1b6fb3bb746c",
- "person": {
- "name": "Morpheus",
- "analysis": {
- "essay": {
- "analyzed_text": "My essay...",
- "word_count": 1200,
- "detected_language": "en"
}, - "personalities": [
- {
- "openness": {
- "name": "Openness",
- "acronym": "O",
- "result": 72.56,
- "confidence": 98.38,
- "score": "average",
- "traits": [
- {
- "1": {
- "trait": 1,
- "name": "Imagination",
- "result": 83.43,
- "confidence": 98.38,
- "score": "high"
}, - "2": {
- "trait": 2,
- "name": "Artistic Interests",
- "result": 51.57,
- "confidence": 98.38,
- "score": "average"
}, - "3": {
- "trait": 3,
- "name": "Emotionality",
- "result": 53.85,
- "confidence": 98.38,
- "score": "average"
}, - "4": {
- "trait": 4,
- "name": "Adventurousness",
- "result": 50.3,
- "confidence": 98.38,
- "score": "average"
}, - "5": {
- "trait": 5,
- "name": "Intellect",
- "result": 53.49,
- "confidence": 98.38,
- "score": "average"
}, - "6": {
- "trait": 6,
- "name": "Liberalism",
- "result": 35.19,
- "confidence": 98.38,
- "score": "low"
}
}
]
}, - "conscientiousness": {
- "name": "Conscientiousness",
- "acronym": "C",
- "result": 42.8,
- "confidence": 98.38,
- "score": "low",
- "traits": [
- {
- "1": {
- "trait": 1,
- "name": "Self-Efficacy",
- "result": 52.13,
- "confidence": 98.38,
- "score": "average"
}, - "2": {
- "trait": 2,
- "name": "Oderliness",
- "result": 41.23,
- "confidence": 98.38,
- "score": "low"
}, - "3": {
- "trait": 3,
- "name": "Dutifulness",
- "result": 40.1,
- "confidence": 98.38,
- "score": "low"
}, - "4": {
- "trait": 4,
- "name": "Achievement Striving",
- "result": 51.9,
- "confidence": 98.38,
- "score": "average"
}, - "5": {
- "trait": 5,
- "name": "Self-Discipline",
- "result": 34.1,
- "confidence": 98.38,
- "score": "low"
}, - "6": {
- "trait": 6,
- "name": "Cautiousness",
- "result": 72.45,
- "confidence": 98.38,
- "score": "high"
}
}
]
}, - "extraversion": {
- "name": "Extraversion",
- "acronym": "E",
- "result": 51.94,
- "confidence": 98.38,
- "score": "average",
- "traits": [
- {
- "1": {
- "trait": 1,
- "name": "Friendliness",
- "result": 49.34,
- "confidence": 98.38,
- "score": "average"
}, - "2": {
- "trait": 2,
- "name": "Gregariousness",
- "result": 39.51,
- "confidence": 98.38,
- "score": "low"
}, - "3": {
- "trait": 3,
- "name": "Assertiveness",
- "result": 75.1,
- "confidence": 98.38,
- "score": "high"
}, - "4": {
- "trait": 4,
- "name": "Activity Level",
- "result": 71.13,
- "confidence": 98.38,
- "score": "high"
}, - "5": {
- "trait": 5,
- "name": "Excitement Seeking",
- "result": 76.59,
- "confidence": 98.38,
- "score": "high"
}, - "6": {
- "trait": 6,
- "name": "Cheerfulness",
- "result": 74.08,
- "confidence": 98.38,
- "score": "high"
}
}
]
}, - "agreeableness": {
- "name": "Agreeableness",
- "acronym": "A",
- "result": 30.71,
- "confidence": 98.38,
- "score": "low",
- "traits": [
- {
- "1": {
- "trait": 1,
- "name": "Trust",
- "result": 43.46,
- "confidence": 98.38,
- "score": "low"
}, - "2": {
- "trait": 2,
- "name": "Morality",
- "result": 23.46,
- "confidence": 98.38,
- "score": "low"
}, - "3": {
- "trait": 3,
- "name": "Altruism",
- "result": 46.23,
- "confidence": 98.38,
- "score": "average"
}, - "4": {
- "trait": 4,
- "name": "Cooperation",
- "result": 22.37,
- "confidence": 98.38,
- "score": "low"
}, - "5": {
- "trait": 5,
- "name": "Modesty",
- "result": 48.71,
- "confidence": 98.38,
- "score": "average"
}, - "6": {
- "trait": 5,
- "name": "Sympathy",
- "result": 36.52,
- "confidence": 98.38,
- "score": "low"
}
}
]
}, - "neuroticism": {
- "name": "Neuroticism",
- "acronym": "N",
- "result": 26.8,
- "confidence": 98.38,
- "score": "low",
- "traits": [
- {
- "1": {
- "trait": 1,
- "name": "Anxiety",
- "result": 24.74,
- "confidence": 98.38,
- "score": "low"
}, - "2": {
- "trait": 2,
- "name": "Anger",
- "result": 31.2,
- "confidence": 98.38,
- "score": "low"
}, - "3": {
- "trait": 3,
- "name": "Depression",
- "result": 22.69,
- "confidence": 98.38,
- "score": "low"
}, - "4": {
- "trait": 4,
- "name": "Self-Consciousness",
- "result": 19.69,
- "confidence": 98.38,
- "score": "low"
}, - "5": {
- "trait": 5,
- "name": "Immoderation",
- "result": 38.02,
- "confidence": 98.38,
- "score": "low"
}, - "6": {
- "trait": 6,
- "name": "Vulnerability",
- "result": 51.23,
- "confidence": 98.38,
- "score": "high"
}
}
]
}
}
], - "warnings": [
- "string"
], - "provider": {
- "name": "string",
- "product": "string",
- "date": "string",
- "api": {
- "version": "string"
}, - "model": {
- "name": "string",
- "theory": "string",
- "version": "string"
}
}
}
}
}
If the analysis of /predict/create was created as 'task: true' you can check the status of the task with the 'task_id' that was generated. The result contains data such as 'predict_id' and 'document_id' that you can search for analysis with /predict/read.
task_id required | string Example: task_id=4a791c11-f646-4c2a-b783-2cbde1290452 The task identification number |
curl -X GET https://api-persona-predict.neuroquest.ai/api/v2/predict/task/status?task_id=4a791c11-f646-4c2a-b783-2cbde1290452 \ -H "Content-Type: application/json" \ -H "token: my-token"
{- "code": 200,
- "status": "success",
- "data": { }
}
All generated analysis is saved, it is possible to search for an analysis by creating it using one of the parameters: (document_id, predict_id, user_id, email).
- Using document_id you can search for a specific analysis.
- Using predict_id you can search for a specific analysis.
- Using email as a key to return numerous analyzes.
- Using user_id as a key to return numerous analyzes.
document_id | string Example: document_id=qMDxnbXEHQLpyROabOPf The document ID generated at creation |
predict_id | string Example: predict_id=f995b602-c53a-4af7-a998-081b673d63f0 The UUID4 generated from creation |
user_id | string Example: user_id=MJumNgU0iud90UsEtohNeh6g0ju1 The user's unique id |
curl -X GET https://api-persona-predict.neuroquest.ai/api/v2/predict/read?document_id=qMDxnbXEHQLpyROabOPf \ -H "Content-Type: application/json" \ -H "token: my-token"
{- "code": 200,
- "status": "success",
- "data": { }
}