> For the complete documentation index, see [llms.txt](https://developers.myscreators.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.myscreators.com/readme.md).

# REST API para M\&S CRM

Integra tu software con el CRM de M\&S Creators: clientes, leads, proyectos, tickets y facturas.

Bienvenido a la documentación oficial de la **API del CRM de M\&S Creators**. Con ella puedes gestionar de forma programática **clientes, prospectos (leads), proyectos, tickets de soporte y facturas**.

La API funciona sobre **HTTPS**, devuelve **JSON** y sigue las convenciones REST: métodos y códigos de estado HTTP estándar, con autenticación por token.

{% hint style="info" %}
**URL base**

```
https://crm.myscreators.com/index.php/api
```

{% endhint %}

## Empieza en 2 minutos

{% stepper %}
{% step %}

### Consigue tu token

Cada solicitud se autentica con el encabezado `authtoken`, vinculado a tu instalación de M\&S. Ver [Autenticación](/primeros-pasos/autenticacion.md).
{% endstep %}

{% step %}

### Haz tu primera llamada

```bash
curl -H "authtoken: TU_TOKEN" \
  "https://crm.myscreators.com/index.php/api/tickets"
```

{% endstep %}

{% step %}

### Explora los módulos

Revisa la [referencia de endpoints](/referencia-de-la-api.md) por recurso.
{% endstep %}
{% endstepper %}

## Primeros pasos

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Introducción</strong></td><td>Qué es la API y cómo funciona.</td><td><a href="/primeros-pasos/introduccion.md">Introducción</a></td></tr><tr><td><strong>Autenticación</strong></td><td>El encabezado <code>authtoken</code>.</td><td><a href="/primeros-pasos/autenticacion.md">Autenticación</a></td></tr><tr><td><strong>Convenciones</strong></td><td>Formatos, multipart y rutas.</td><td><a href="/primeros-pasos/convenciones.md">Convenciones</a></td></tr><tr><td><strong>Errores</strong></td><td>Códigos de estado y mensajes.</td><td><a href="/primeros-pasos/errores.md">Errores y códigos de estado</a></td></tr></tbody></table>

## Módulos de la API

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Clientes</strong></td><td>Crear, consultar, eliminar y buscar.</td><td><a href="/referencia-de-la-api/clientes.md">Clientes</a></td></tr><tr><td><strong>Leads</strong></td><td>Prospectos y su ciclo de vida.</td><td><a href="/referencia-de-la-api/leads.md">Leads</a></td></tr><tr><td><strong>Proyectos</strong></td><td>Listar, crear, actualizar y buscar.</td><td><a href="/referencia-de-la-api/proyectos.md">Proyectos</a></td></tr><tr><td><strong>Tickets</strong></td><td>Soporte de principio a fin.</td><td><a href="/referencia-de-la-api/tickets.md">Tickets</a></td></tr><tr><td><strong>Facturas</strong></td><td>Crear y buscar facturas.</td><td><a href="/referencia-de-la-api/facturas.md">Facturas</a></td></tr><tr><td><strong>Recursos auxiliares</strong></td><td>Grupos, etiquetas, impuestos, miembros y contactos.</td><td><a href="/referencia-de-la-api/recursos-auxiliares.md">Recursos auxiliares</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.myscreators.com/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
