
The Mind Reasoner API allows you to programmatically create digital minds, populate them with conversational data, and run powerful simulations to get an accurate preview of how the person will think, feel, say, and act in any scenario. This guide will walk you through the entire process in three core steps.
Before you begin, make sure you have your API key. You can get this from your Mind Reasoner account dashboard. You will pass the API key as a Bearer token in the Authorization header of every request.
This guide provides interactive code examples in today’s most popular languages. Use the tabs to select your language—the choice will sync across all examples on the page.
The following examples use placeholder variables. Hover over them in the code to see what they mean and where to find their values.
First, create a “mind.” This is the core entity that will hold the data and personality model. Send a POST request to the /minds endpoint with the name of the mind you want to create.
The API will respond with the new mind’s data. Save the id from the mind object and the id from the digitalTwin object. You will need them for the next steps.
Now, let’s give the mind some knowledge by uploading a data file (like a conversation transcript in .vtt, .docx, or .pdf format). This creates a snapshot of the mind’s state.
First, ask the API for a special, one-time URL to upload your file.
The response will contain a signedUrl and an artifactId. Save the artifactId.
Next, use the signedUrl to upload your local file. This is a PUT request where the body is your file’s content.
Finally, tell Mind Reasoner to process the uploaded file. Send a POST request using the IDs you saved.
The response will give you a mindAssessmentId. Save this ID, as it’s your snapshot’s unique identifier.
Snapshot processing is asynchronous. Before you can run a simulation, you must check its status.
Poll the /status endpoint using your mindId and the snapshotId (mindAssessmentId) until the status is completed.
Wait for this response:
Once the snapshot is complete, you can run a simulation. Send a POST request to the /simulate endpoint with your **mindId** and a scenario.
The API will return the simulated response from the mind.
Congratulations! You have successfully created a mind, uploaded data, and run your first simulation. You can now integrate this workflow to bring an accurate preview of how a person will think, feel, say, and act into your own applications.
Explore all endpoints and parameters in the official API Documentation.
Contact us at support@mindreasoner.com for technical questions.