Skip to main content
POST
/
api
/
v1
/
search
/
step-up
/
transactions
Search
package main

import(
	"context"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
	conductoronesdkgo "github.com/conductorone/conductorone-sdk-go"
	"log"
)

func main() {
    ctx := context.Background()

    s := conductoronesdkgo.New(
        conductoronesdkgo.WithSecurity(shared.Security{
            BearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
            Oauth: "<YOUR_OAUTH_HERE>",
        }),
    )

    res, err := s.StepUpTransaction.Search(ctx, nil)
    if err != nil {
        log.Fatal(err)
    }
    if res.SearchStepUpTransactionsResponse != nil {
        // handle response
    }
}
{
  "list": [
    {
      "approveTask": {
        "policyStepId": "<string>",
        "taskId": "<string>"
      },
      "claims": {},
      "createdAt": "2023-11-07T05:31:56Z",
      "errorMessage": "<string>",
      "expiresAt": "2023-11-07T05:31:56Z",
      "id": "<string>",
      "providerId": "<string>",
      "test": {},
      "updatedAt": "2023-11-07T05:31:56Z",
      "userId": "<string>"
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

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

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

Request message for searching step-up transactions

createdAfter
string<date-time> | null
createdBefore
string<date-time> | null
pageSize
integer<int32> | null

Maximum number of results to return

pageToken
string | null

Token for pagination

providerId
string | null

Filter by provider ID

state
enum<string> | null

Filter by transaction state

Available options:
STEP_UP_TRANSACTION_STATE_UNSPECIFIED,
STEP_UP_TRANSACTION_STATE_PENDING,
STEP_UP_TRANSACTION_STATE_VERIFIED,
STEP_UP_TRANSACTION_STATE_ERROR
targetType
enum<string> | null

The targetType field.

Available options:
TARGET_TYPE_UNSPECIFIED,
TARGET_TYPE_TICKET,
TARGET_TYPE_TEST
taskId
string | null

Filter by task ID (only applicable if target_type is TICKET)

userId
string | null

Filter by user ID

Response

200 - application/json

Response message for searching step-up transactions

Response message for searching step-up transactions

list
Step Up Transaction · object[] | null

List of transactions matching the search criteria

nextPageToken
string | null

Token for retrieving the next page of results