---
title: "Get the organization default run target"
method: GET
path: "/api/v0/automations/org-default-target"
tags: ["Automations"]
---

# Get the organization default run target

`GET /api/v0/automations/org-default-target`

## Request

- Base URL: `https://api.factory.ai`
- URL: `https://api.factory.ai/api/v0/automations/org-default-target`
- Auth: HTTP bearer

Whether a new Slack automation can run on the organization's default agent profile (its service account, environment or computer pool, and model), what that profile resolves to now, and whether Slack automations must run as a service account.

## Headers

- `X-Factory-Org-Id` string

## Response `200`

Response for status 200

- GetAutomationOrgDefaultTarget200ResponseBody
  - `available` boolean, required
  - `needsSetup` boolean, required
  - `serviceAccountName` string
  - `machineType` 'dynamic' | 'persistent'
  - `environmentName` string
  - `serviceAccountRequired` boolean

## Other responses

- `400`: Response for status 400
- `401`: Response for status 401
- `402`: Response for status 402
- `403`: Response for status 403
- `404`: Response for status 404
- `451`: Response for status 451
- `500`: Response for status 500
- `503`: Response for status 503

## Changes

- **2026-11-14** `9fb2e1b1ec61`: 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
  - added the non-success response with the status `503`
- **2026-11-12** `b6a46c415079`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/automations/org-default-target/get.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) - [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/2e37e1b079d2?raw)
