---
title: "Creates an oauth app for the given AccountSid"
method: POST
path: "/v1/Account/OAuthApps"
tags: ["Oauth2"]
---

# Creates an oauth app for the given AccountSid

`POST /v1/Account/OAuthApps`

## Request body

- IamV1AccountVendorOauthAppCreateRequest
  - `type` string
  - `friendly_name` string
  - `owner_sid` string, nullable
  - `description` string
  - `client_sid` string, nullable
  - `policy` object
    - `allow` string[] — Set of permissions explicitly allowed
    - `deny` string[] — Set of permissions explicitly denied
  - `access_token_ttl` integer

## Response `201`

Returns newly created vendor oauthApp

- IamV1AccountVendorOauthAppCreateUpdateResponse
  - `type` string
  - `sid` string
  - `friendly_name` string
  - `description` string
  - `date_created` string, date-time
  - `created_by` string
  - `secret` string
  - `status` string
  - `policy` object
    - `allow` string[] — Set of permissions explicitly allowed
    - `deny` string[] — Set of permissions explicitly denied
  - `access_token_ttl` integer

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.net/twilio/apis/iam-v1.md) · [All operations](https://skmtc.net/twilio/apis/iam-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/twilio/iam-v1/revisions/fea70127b4d0/schema)
