---
updatedAt: 2026-08-28T08:29:19.000Z
agentTools:
  projectIndex: https://developers.airsaas.io/llms.txt
---

# Create a goal

Creates a new **Goal** in the workspace.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "API Endpoints",
    "version": "1.0 (v1)",
    "description": "API to access AirSaas resources"
  },
  "paths": {
    "/v1/goals/": {
      "post": {
        "operationId": "goals_create",
        "description": "Creates a new **Goal** in the workspace.",
        "summary": "Create a goal",
        "tags": [
          "Goals"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GoalCreateRequest"
              },
              "examples": {
                "Example1": {
                  "value": {
                    "name": "Company Goal 1"
                  },
                  "summary": "Create goal"
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/GoalCreateRequest"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/GoalCreateRequest"
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "apiKeyAuth": []
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GoalDocumentationResponse"
                },
                "examples": {
                  "Example1": {
                    "value": {
                      "id": "cb61abc6-0c6f-4fc6-b534-9ea9f9cbd52d",
                      "name": "Company Goal 1",
                      "created_at": "2022-06-23T19:34:44.984+00:00"
                    },
                    "summary": "OK"
                  }
                }
              }
            },
            "description": ""
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GoalCreateRequest": {
        "type": "object",
        "description": "Public API payload for POST /v1/goals/. Only `name` is writable, the workspace comes from the caller.",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "name"
        ]
      },
      "GoalDocumentationResponse": {
        "type": "object",
        "description": "Used for documentation generation with Spectacular, to be able to display\nall fields as non required on Readme.com for responses",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": true,
            "maxLength": 200
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "readOnly": true,
            "nullable": true,
            "maxLength": 2048
          }
        }
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Token-based authentication with required prefix \"Api-Key\""
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "node",
      "python"
    ]
  },
  "servers": [
    {
      "url": "https://api.airsaas.io"
    }
  ]
}
```