---
title: "Get Custom Flow Assignments"
method: POST
path: "/custom-flow/get-assignments"
tags: ["Custom Flow"]
---

# Get Custom Flow Assignments

`POST /custom-flow/get-assignments`

## Request body

- object[]
  - `scope` 'ORGANIZATION' | 'PROJECT' | 'BLUEPRINT', required
  - `scopeId` string, required

## Response `200`

- BlueprintApiRichCustomFlowAssigment[]
  - `scopeId` string, required
  - `blueprintId` string, required
  - `hash` string
  - `scope` 'ORGANIZATION' | 'PROJECT' | 'BLUEPRINT', required
  - `organizationId` string, required
  - `order` number
  - `customFlowTemplate` BlueprintApiCustomFlowTemplate, required
    - `type` union, required
      - 'custom-flow'
      - 'approval-policy'
    - `policyConfiguration` object
    - `name` string, required
    - `repository` string, required
    - `revision` string
    - `path` string
    - `tokenName` string
    - `tokenId` string
    - `sshKeys` BlueprintApiSshKey[]
      - `id` string, required
      - `name` string, required
    - `githubInstallationId` number, nullable
    - `bitbucketClientKey` string, nullable
    - `isBitbucketServer` boolean
    - `isGitLabEnterprise` boolean
    - `isGitHubEnterprise` boolean
    - `isGitLab` boolean
    - `isAzureDevOps` boolean
    - `vcsConnectionId` string, nullable
    - `id` string
    - `author` User
      - `email` string
      - `user_id` string
      - `created_at` string
      - `updated_at` string
      - `app_metadata` AppMetadata
        - `organizations` UserOrganization[]
          - `id` string, required
          - `role` string
          - `name` string
        - `isApiKey` boolean
        - `isAutogeneratedTerraformDeployer` boolean
        - `apiKeyType` 'oidc'
        - `createdBy` string
        - `organizationId` string
        - `isSystemUser` boolean
        - `readOnly` boolean
      - `picture` string
      - `name` string
      - `last_login` string
      - `given_name` string
      - `family_name` string
      - `blocked` boolean
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `isDeleted` boolean
    - `authorId` string
    - `organizationId` string, required
    - `projectId` string

---

[API](https://skmtc.net/envzero/apis/env0-api.md) · [All operations](https://skmtc.net/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/envzero/env0-api/versions/513441cbe9dc/schema)
