---
title: "CreateOAuthApplicationBody"
description: "Request body for creating an OAuthApplication."
section: "Reference"
group: "Types"
order: 155
---

## Definition

```ts
interface CreateOAuthApplicationBody {
  ownerOrgId: string;
  name: string;
  type: "public" | "web" | "native" | "user-agent-based";
  redirectUrls: Array<string>;
  allowedScopes: Array<"workspace:read" | "workspace:write">;
}
```

## Fields

| Field           | Type                                                  | Notes                                                                    |
| --------------- | ----------------------------------------------------- | ------------------------------------------------------------------------ |
| `ownerOrgId`    | `string`                                              | `required` — Organization that will own the application.                 |
| `name`          | `string`                                              | `required` — Display name.                                               |
| `type`          | `"public" \| "web" \| "native" \| "user-agent-based"` | `required`                                                               |
| `redirectUrls`  | `Array<string>`                                       | `required` — Allowed redirect URLs — exact match enforced at /authorize. |
| `allowedScopes` | `Array<"workspace:read" \| "workspace:write">`        | `required` — Scopes this app may request. Defaults to the v1 vocabulary. |
