Skip to main content
POST
Create a launch profile

Authorizations

Authorization
string
header
required

An access token from Barndoor's identity provider, sent as Authorization: Bearer <token>. Use a service-account token from the OAuth 2.0 client-credentials grant for scripts and CI, or a signed-in user's token. The caller needs the admin role in the organization. Gateway API keys (bd-...) are not accepted here.

Body

application/json
client
string
required

claude (Claude Code) or codex (Codex CLI).

config
object
required

Model route aliases keyed by client setting. See AgentRuntimeProfile.config for the accepted keys.

display_name
string
required

Name shown in the Barndoor app, at most 120 characters.

slug
string
required

Lowercase letters, digits, and internal hyphens; at most 64 characters. Unique within the organization.

capabilities
object

The capabilities a launch profile gives agent sessions. Omitted fields take the client_default values shown as defaults. Some combinations are not available for every client; the error message names the conflict.

Response

The created profile

A launch profile: the models and capabilities applied when organization members start an agent with barndoor run.

active
boolean
required

Whether members can launch with this profile.

capabilities
object
required

The capabilities a launch profile gives agent sessions. Omitted fields take the client_default values shown as defaults. Some combinations are not available for every client; the error message names the conflict.

client
string
required

The agent client: claude (Claude Code) or codex (Codex CLI).

config
object
required

Model route aliases keyed by client setting. model is required. Claude Code profiles also accept ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, ANTHROPIC_DEFAULT_HAIKU_MODEL, ANTHROPIC_DEFAULT_FABLE_MODEL, advisorModel, and additionalModel1 through additionalModel16. Codex profiles accept only model. Each value is a single model route alias.

created_at
string<date-time>
required
display_name
string
required
id
string<uuid>
required
is_org_default
boolean
required

Whether this is the organization's default profile for its client. Each client has at most one default.

org_id
string<uuid>
required
slug
string
required

Identifier used in the URL, unique within the organization.

updated_at
string<date-time>
required
version
integer<int32>
required

Version of the current models-and-capabilities contract. Each replacement creates a new version.