Amazon Detective · Arazzo Workflow

Amazon Detective Member Accepts a Behavior Graph Invitation

Version 1.0.0

List open invitations for a member account, accept one, and confirm enrollment.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub ForensicsInvestigationSecurityArazzoWorkflows

Provider

amazon-detective

Workflows

member-accept-invitation
List invitations, accept the one for a target behavior graph, and verify membership.
Lists pending behavior graph invitations for the member account, accepts the invitation for the supplied graph ARN, and confirms the account's membership status. Branches on whether the invitation list is empty.
3 steps inputs: accountId, graphArn, maxResults outputs: invitations, memberDetails
1
listInvitations
Retrieve the open and accepted behavior graph invitations for the calling member account.
2
acceptInvitation
Accept the invitation for the target behavior graph so the member account begins contributing data to it.
3
confirmMembership
Read back the membership record for the member account to confirm it is now enrolled in the behavior graph.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Detective Member Accepts a Behavior Graph Invitation
  summary: List open invitations for a member account, accept one, and confirm enrollment.
  description: >-
    Runs the member-account side of Amazon Detective onboarding. The workflow
    lists the open and accepted behavior graph invitations for the calling
    member account, accepts the invitation for the requested graph so the
    account begins contributing data, and then reads back its own membership
    record to confirm enrollment. Branches on whether any invitations exist
    before attempting to accept. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: invitationsApi
  url: ../openapi/amazon-detective-invitations-api-openapi.yml
  type: openapi
- name: membersApi
  url: ../openapi/amazon-detective-members-api-openapi.yml
  type: openapi
workflows:
- workflowId: member-accept-invitation
  summary: List invitations, accept the one for a target behavior graph, and verify membership.
  description: >-
    Lists pending behavior graph invitations for the member account, accepts the
    invitation for the supplied graph ARN, and confirms the account's membership
    status. Branches on whether the invitation list is empty.
  inputs:
    type: object
    required:
    - graphArn
    - accountId
    properties:
      graphArn:
        type: string
        description: The ARN of the behavior graph whose invitation should be accepted.
      accountId:
        type: string
        description: The member account identifier used to read back membership details.
      maxResults:
        type: integer
        description: The maximum number of invitations to return when listing.
  steps:
  - stepId: listInvitations
    description: >-
      Retrieve the open and accepted behavior graph invitations for the calling
      member account.
    operationId: listInvitations
    requestBody:
      contentType: application/json
      payload:
        MaxResults: $inputs.maxResults
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      invitations: $response.body#/Invitations
    onSuccess:
    - name: hasInvitations
      type: goto
      stepId: acceptInvitation
      criteria:
      - context: $response.body
        condition: $.Invitations.length > 0
        type: jsonpath
    - name: noInvitations
      type: end
      criteria:
      - context: $response.body
        condition: $.Invitations.length == 0
        type: jsonpath
  - stepId: acceptInvitation
    description: >-
      Accept the invitation for the target behavior graph so the member account
      begins contributing data to it.
    operationId: acceptInvitation
    requestBody:
      contentType: application/json
      payload:
        GraphArn: $inputs.graphArn
    successCriteria:
    - condition: $statusCode == 200
  - stepId: confirmMembership
    description: >-
      Read back the membership record for the member account to confirm it is
      now enrolled in the behavior graph.
    operationId: getMembers
    requestBody:
      contentType: application/json
      payload:
        GraphArn: $inputs.graphArn
        AccountIds:
        - $inputs.accountId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      memberDetails: $response.body#/MemberDetails
  outputs:
    invitations: $steps.listInvitations.outputs.invitations
    memberDetails: $steps.confirmMembership.outputs.memberDetails

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/amazon-detective-member-accept-invitation-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.