Skip to content
Get started

Members

Create
POST/teams/{teamId}/members
Delete
DELETE/teams/{teamId}/members/{memberId}
Update
PUT/teams/{teamId}/members/{memberId}
ModelsExpand Collapse
MemberCreateResponse object { team }
team: object { id, context, createdAt, 12 more }
id: string

The team ID (example: “eyVcnFJcR92BxBkz7N6g5w”)

context: object { invitationsCount, keysCount, userRole, usersCount }

The context of the team for the current authenticated user

invitationsCount: number

The number of invitations on this team

keysCount: number

The number of API keys on this team

userRole: "admin" or "key" or "member"

The authenticated user’s role for this team

One of the following:
"admin"
"key"
"member"
usersCount: number

The number of users on this team

createdAt: string

The team creation date as an ISO string (example: “2023-02-03T11:19:41.579Z”)

name: string

The team name (example: “Scenario”)

plan: "cu-basic" or "cu-creator" or "cu-max" or 9 more

The team plan

One of the following:
"cu-basic"
"cu-creator"
"cu-max"
"cu-pro"
"cu-pro-q3-25"
"cu-team"
"cu-team-v2"
"enterprise"
"essential"
"free"
"premium"
"pro"
projects: array of object { id, createdAt, name, 4 more }

Projects of the team

id: string
createdAt: string
name: string
updatedAt: string
avatar: optional object { assetId, url }
assetId: optional string

ID of the asset used as thumbnail if provided, otherwise undefined

url: optional string

Signed URL of the assetId or free url if assetId is undefined

disableIpDetection: optional boolean

When true, IP detection is switched off for this project.

qualityGateAutoDetect: optional boolean

Whether Quality Gate auto-detection runs on generation for this project.

type: "personal" or "shared"

The team type

One of the following:
"personal"
"shared"
updatedAt: string

The team update date as an ISO string (example: “2023-02-03T11:19:41.579Z”)

avatar: optional object { assetId, url }

The team’s avatar

assetId: optional string

ID of the asset used as thumbnail if provided, otherwise undefined

url: optional string

Signed URL of the assetId or free url if assetId is undefined

byok: optional object { markupMultiplier, updatedAt, updatedBy }

BYOK pricing override. Admin-only — omitted for non-admin callers.

markupMultiplier: number
updatedAt: optional string

ISO timestamp of the last update. Optional — legacy rows may lack it.

updatedBy: optional string

Human-readable handle of who last updated the markup (display name).

defaultUserMaxConsumption: optional number

Team-wide default max consumption (CU) applied to every member over the billing period, unless overridden per member. Absent when no team-wide default is set.

ipDetectionEnforcement: optional "active-fail-closed" or "active-fail-open" or "disabled"

The IP detection enforcement posture for the team. ‘disabled’: IP detection is not performed. ‘active-fail-open’: IP detection runs; on detector error the request is allowed through. ‘active-fail-closed’: IP detection runs; on detector error the request is blocked.

One of the following:
"active-fail-closed"
"active-fail-open"
"disabled"
moderationEnforcement: optional "active-fail-closed" or "active-fail-open" or "disabled"

The moderation filter posture for the team, applied to the image, video and text inputs and the prompts of every billed request. Enterprise only. Scenario’s own rule against explicit content involving minors applies to every team regardless. ‘disabled’: only Scenario’s own rule applies. ‘active-fail-open’: an input matching the team’s moderation rules is refused; an input that cannot be checked goes through. ‘active-fail-closed’: an input matching the team’s moderation rules is refused, and so is an input that cannot be checked.

One of the following:
"active-fail-closed"
"active-fail-open"
"disabled"
moderationRules: optional array of object { label, minConfidence }

The team’s moderation rules, applied when moderationEnforcement is active: an input carrying one of these top-level labels at or above the rule’s confidence is refused. When it is unset or empty, nothing is refused beyond Scenario’s own rule.

label: "alcohol" or "drugs_and_tobacco" or "explicit" or 7 more

Top-level moderation labels a team rule can refuse.

One of the following:
"alcohol"
"drugs_and_tobacco"
"explicit"
"gambling"
"hate_symbols"
"non-explicit_nudity_of_intimate_parts_and_kissing"
"rude_gestures"
"swimwear_or_underwear"
"violence"
"visually_disturbing"
minConfidence: number

Minimum confidence (50-100) at which the label refuses the input. No label is reported below 50.

maximum100
minimum50
qualityGateAutoDetect: optional boolean

Quality Gate auto-detection default for the team.

MemberDeleteResponse = unknown
MemberUpdateResponse = unknown