---
title: "Create variable"
method: POST
path: "/orgs/variables"
tags: ["Workspace"]
---

# Create variable

`POST /orgs/variables`

## Request

- Base URL: `https://api.useinvent.com`
- URL: `https://api.useinvent.com/orgs/variables`
- Auth: HTTP bearer

Create a variable for a specific org.

## Request body

- CreateOrgVariableSchema: Detailed information about a variable in your org
  - `key` string, required: The key of the org variable
  - `value` string: The value of the org variable
  - `secret` boolean: Indicates if the variable is a secret

## Response `200`

The created org variable.

- OrgVariableSchema: Detailed information about a variable in your org
  - `key` string, required: The key of the org variable
  - `value` string: The value of the org variable
  - `secret` boolean: Indicates if the variable is a secret

---

[API](https://skmtc.dev/useinvent/apis/invent-api.md) · [All operations](https://skmtc.dev/useinvent/apis/invent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useinvent/apis/invent-api/revisions/98824f3fde82?raw)
