# Models

In MockAPI, a model is a blueprint outlining the structure and type of data your API should handle, similar to how Data Transfer Objects (DTOs) work in API frameworks.&#x20;

By defining a model, you instruct MockAPI to generate realistic, structured data, like user profiles in a social media app, with specified attributes or properties such as names, email and date of birth.

Defining a model enables MockAPI to generate realistic data based on the properties of that model and will return the data based on that structure.

Let's discuss how to create a model next.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mockapi.com/models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
