GET/suite/wkf/flujos/fases
Lista las fases de los flujos de la empresa y permite filtrar por flujo o por fase.
Rutas alternativas
/suite/wkf/flujos/fases/:tkFlujoFase/suite/wkf/flujos/:tkFlujo/fases
Parámetros
| Nombre | Tipo | Validación | Descripción |
|---|
tkFlujo | varchar | | Identificador del flujo. |
tkFlujoFase | varchar | | Identificador de la fase del flujo. |
pagina | int | | Número de página que se consulta. |
cantidadRegistros | int | | Cantidad máxima de registros por página. |
Respuesta
| Nombre | Tipo | Descripción |
|---|
indice | Integer | Posición de la fase dentro de la respuesta. |
tkWorkflow | String | Identificador del flujo. |
workflowNombre | String | Nombre del flujo. |
fechaCreacion | String | Fecha de creación del flujo en formato ISO. |
tkWorkflowFase | String | Identificador de la fase. |
fase | String | Nombre de la fase. |
orden | Integer | Orden de la fase dentro del flujo. |
config | String | Configuración JSON de la fase. |
tkResponsable | String | Identificador del responsable configurado, cuando existe. |
Solicitud
curl --request GET \
--url '{{API_URL}}/suite/wkf/flujos/fases?tkFlujo=00000000-0000-4000-8000-000000000011&pagina=1&cantidadRegistros=20' \
--header 'token: {{TOKEN}}'const token = "{{TOKEN}}";
const response = await fetch("{{API_URL}}/suite/wkf/flujos/fases?tkFlujo=00000000-0000-4000-8000-000000000011&pagina=1&cantidadRegistros=20", {
method: "GET",
headers: { token }
});
console.log(await response.json());// Node.js 18 o posterior
const token = "{{TOKEN}}";
const response = await fetch("{{API_URL}}/suite/wkf/flujos/fases?tkFlujo=00000000-0000-4000-8000-000000000011&pagina=1&cantidadRegistros=20", {
method: "GET",
headers: { token }
});
console.log(await response.json());import requests
response = requests.get(
"{{API_URL}}/suite/wkf/flujos/fases?tkFlujo=00000000-0000-4000-8000-000000000011&pagina=1&cantidadRegistros=20",
headers={"token": "{{TOKEN}}"}
)
response.raise_for_status()
print(response.json())package main
import (
encoding/json
"net/http"
)
func main() {
request, err := http.NewRequest(http.MethodGet, "{{API_URL}}/suite/wkf/flujos/fases?tkFlujo=00000000-0000-4000-8000-000000000011&pagina=1&cantidadRegistros=20", nil)
if err != nil { panic(err) }
request.Header.Set("token", "{{TOKEN}}")
response, err := http.DefaultClient.Do(request)
if err != nil { panic(err) }
defer response.Body.Close()
var result any
if err := json.NewDecoder(response.Body).Decode(&result); err != nil { panic(err) }
}using System.Net.Http;
using System.Net.Http.Json;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("token", "{{TOKEN}}");
using var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "{{API_URL}}/suite/wkf/flujos/fases?tkFlujo=00000000-0000-4000-8000-000000000011&pagina=1&cantidadRegistros=20"));
response.EnsureSuccessStatusCode();
var result = await response.Content.ReadFromJsonAsync<object>();
Respuesta
[
{
"indice": 1,
"tkWorkflow": "00000000-0000-4000-8000-000000000011",
"workflowNombre": "Flujo de ejemplo",
"fechaCreacion": "2026-09-01T12:00:00.000Z",
"tkWorkflowFase": "00000000-0000-4000-8000-000000000013",
"fase": "Inicio",
"orden": 1,
"config": "{}",
"tkResponsable": null
}
]