> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/global-settings/global-settings-docs-es/seguridad/tokens-de-api/crear-un-token-de-api.md).

# Crear un token de API

{% hint style="success" %}

#### Credenciales de usuario requeridas

\[**Usuario de Flosum**] - Cualquier rol
{% endhint %}

## ![](https://2629070795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FSxcnKlaJKPzDqONWoDNv%2FSummary2-Small-Icon.svg?alt=media\&token=5e3253d0-a069-4ba5-9c06-83c70bd0b21d) Descripción general

Este artículo le muestra cómo crear un token de API utilizado para conceder acceso a las API de Flosum. Este token se puede usar para acceder a las siguientes API.

* La API SCIM de Flosum para la administración de usuarios del proveedor de identidades.
* La interfaz de línea de comandos de DevOps de Flosum.

## Crear un token de API

{% stepper %}
{% step %}

### Acceder a la configuración global

1. Desde cualquier **Flosum Cloud App**, haga clic en el **App Switcher** icono en la parte superior del menú lateral izquierdo.

   <div align="left"><figure><img src="https://2629070795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fgh5FcQCnErKAjJ7isiuB%2FGS-Access-01.png?alt=media&amp;token=ddf01506-f133-4e49-825a-76a2a237e3a8" alt="" width="563"><figcaption></figcaption></figure></div>
2. Haga clic en **Configuración global**.&#x20;

   <div align="left"><figure><img src="https://2629070795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fx5vntzgpLuT50fMTzwT9%2FGS-Access-02.png?alt=media&amp;token=f67a125f-5087-47c2-9bc6-9393c3d2b7a5" alt="" width="563"><figcaption></figcaption></figure></div>
3. La **Configuración global** aplicación se abrirá en una nueva pestaña.

{% hint style="info" %}
También se puede acceder a Configuración global iniciando sesión directamente a través de la URL de inicio de sesión de Flosum Cloud Apps. Consulte el siguiente artículo para obtener instrucciones de inicio de sesión.

* [Iniciar sesión en Configuración global](/global-settings/global-settings-docs-es/primeros-pasos/iniciar-sesion-en-configuracion-global.md)
  {% endhint %}
  {% endstep %}

{% step %}

### Crear token de API

1. Haga clic en **Tokens de API** en el menú de la barra lateral izquierda.
2. Haga clic en **Crear**.

   <div align="left"><figure><img src="https://2629070795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FgqoftgRzO9nY2rpu9hQ1%2FCreatingAnApiToken-S02-01.png?alt=media&amp;token=f4489e15-bb83-4922-b503-f073a8491c19" alt="" width="563"><figcaption></figcaption></figure></div>
3. Introduzca un nombre descriptivo **Nombre** para el token.
4. Haga clic en el **Caducidad** menú desplegable.

   <div align="left"><figure><img src="https://2629070795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FMvVcw1ljSEHQESSBAJwg%2FCreatingAnApiToken-S02-02.png?alt=media&amp;token=344df77f-4a37-4ed7-9028-d80d725f4461" alt="" width="375"><figcaption></figcaption></figure></div>
5. Seleccione el número de días durante los cuales desea que el token de API sea válido.

   <div align="left"><figure><img src="https://2629070795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FYCWyJwPCL6XM7iA6g8N8%2FCreatingAnApiToken-S02-03.png?alt=media&amp;token=c8ad062c-2cff-4e30-9cfb-34271b1e0e49" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="warning" %}

#### Caducidad del token

Una vez que un token de API caduca, cualquier servicio que utilice el token no podrá acceder a la API de Flosum. Para servicios que requieren acceso continuo, como un proveedor de identidad SSO, seleccione **Sin caducidad**.
{% endhint %}

6. Haga clic en **Crear**.

   <div align="left"><figure><img src="https://2629070795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2F762dulJyPwAQ8MpAzRaU%2FCreatingAnApiToken-S02-04.png?alt=media&amp;token=fee34784-77de-4d2e-9add-03b7baa92be0" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Guardar token de API

{% hint style="warning" %}

#### Token de API

El token de API solo se muestra una vez. Si pierde su token, deberá actualizarlo para generar uno nuevo. Al actualizar un token, el anterior deja de ser válido y deberá actualizar cualquier servicio que lo utilice.
{% endhint %}

1. Una vez creado, se mostrará el token de API.
2. Haga clic en el **Copiar** icono para copiar el token y luego guardarlo de forma segura. No podrá verlo de nuevo.

   <div align="left"><figure><img src="https://2629070795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FWfkw10WLti9bHD3HVVFk%2FCreatingAnApiToken-S03-01.png?alt=media&amp;token=809004be-b572-4ca0-9f24-9b2e961c60ce" alt="" width="375"><figcaption></figcaption></figure></div>
3. Haga clic en **Cerrar**.
4. El token que creó ahora aparece en la tabla de tokens de API.

   <div align="left"><figure><img src="https://2629070795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FocJvxwLRdGw2oGNiG2iQ%2FCreatingAnApiToken-S03-02.png?alt=media&amp;token=19b34f62-3753-420a-aaa9-a086bff17430" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}
{% endstepper %}


---

# 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://docs.flosum.com/global-settings/global-settings-docs-es/seguridad/tokens-de-api/crear-un-token-de-api.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.
