> For the complete documentation index, see [llms.txt](https://docs.videsk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.videsk.io/es-developers/sdks/phone.md).

# Phone

Con `Phone` podrás crear llamadas de forma programática, sin necesidad de preocuparte por las conexiones, parámetros, excepciones, etc.

Phone es compatible con cualquier ambiente y framework, ya sea nativo, Svelte, Vue, React, Angular, etc.

## Instalación

Para comenzar deberás instalar nuestro recurso en tu sitio web o aplicación móvil. Tienes las siguientes alternativas.

{% tabs %}
{% tab title="HTML" %}

```markup
<script src="https://assets.videsk.io/js/sdk/phone.min.js"></script>
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
const script = document.createElement('script');
script.src = "https://assets.videsk.io/js/sdk/phone.min.js";
document.body.appendChild('body'); // O reemplaza con el nodo DOM que desees
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
No almacenes el contenido del script en tu servidor, **esto infringe nuestros términos de uso**.
{% endhint %}

{% hint style="danger" %}
Por seguridad y calidad de servicio tenemos un límite de peticiones por segundo por IP/Token, que consta de 20 peticiones en 1 segundo. Evita superar este límite, ya que nuestra Rest API bloqueará las peticiones de tus clientes.
{% endhint %}

## Instanciación

Primero deberás instanciar `VideskPhone` como un [constructor](https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Classes/constructor).

```javascript
const phone = new VideskPhone(APIToken);
```

En la variable `phone` podrás acceder a los métodos y propiedades.

{% hint style="info" %}
Si instancias `VideskPhone`sin un token automáticamente intentará extraerlo de la URL, por lo que podrás utilizar `token`, `videsk-token` o `api-key` como parámetro en la URL.
{% endhint %}

```
https://example.com?api-key=eyJhbGciOiJIUzI1NiIsI...
```

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Métodos</strong></td><td>Listado de métodos disponibles en Phone.</td><td></td><td><a href="/pages/ivN8756txlSSOygKuT3s">/pages/ivN8756txlSSOygKuT3s</a></td></tr><tr><td><strong>Eventos</strong></td><td>Listado de eventos disponibles en Phone.</td><td></td><td><a href="/pages/U089ThqSbquC3j2Zwmag">/pages/U089ThqSbquC3j2Zwmag</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 dynamically by asking a question.

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

```
GET https://docs.videsk.io/es-developers/sdks/phone.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
