Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
flows
/
{flow_id}
/
executions
Go
package example

import (
    client "github.com/auth0/go-auth0/management/client"
    option "github.com/auth0/go-auth0/management/option"
    context "context"
    flows "github.com/auth0/go-auth0/management/flows"
    management "github.com/auth0/go-auth0/management"
)

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Flows.Executions.List(
        context.TODO(),
        "flow_id",
        &flows.ExecutionsListRequest{
            From: management.String(
                "from",
            ),
            Take: management.Int(
                1,
            ),
        },
    )
}
[
  {
    "id": "<string>",
    "trace_id": "<string>",
    "status": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "journey_id": "<string>",
    "started_at": "2023-11-07T05:31:56Z",
    "ended_at": "2023-11-07T05:31:56Z"
  }
]

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

flow_id
string
requis

Flow id

Maximum string length: 30

Paramètres de requête

page
integer

Page index of the results to return. First page is 0.

Plage requise: x >= 0
per_page
integer

Number of results per page. Defaults to 50.

Plage requise: 1 <= x <= 100
include_totals
boolean

Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).

from
string

Optional Id from which to start selection.

take
integer

Number of results per page. Defaults to 50.

Plage requise: 1 <= x <= 100

Réponse

Flow executions successfully retrieved.

id
string<flow-execution-id>
requis

Flow execution identifier

Maximum string length: 30
trace_id
string
requis

Trace id

Required string length: 1 - 50
status
string
requis

Execution status

Required string length: 1 - 50
created_at
string<date-time>
requis

The ISO 8601 formatted date when this flow execution was created.

updated_at
string<date-time>
requis

The ISO 8601 formatted date when this flow execution was updated.

journey_id
string

Journey id

Required string length: 1 - 50
started_at
string<date-time>

The ISO 8601 formatted date when this flow execution started.

ended_at
string<date-time>

The ISO 8601 formatted date when this flow execution ended.