Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

remove api tokens from api docs

Fendy Heryantof80ec998b3eb
diff --git a/packages/nocodb/src/schema/swagger-v3.json b/packages/nocodb/src/schema/swagger-v3.json
index 6b027dee99..7423ad701a 100644
--- a/packages/nocodb/src/schema/swagger-v3.json
+++ b/packages/nocodb/src/schema/swagger-v3.json
@@ -19,8 +19,7 @@
"Fields",
"View Filters",
"View Sorts",
- "Scripts",
- "API Tokens"
+ "Scripts"
]
},
{
@@ -5602,166 +5601,6 @@
}
}
}
- },
- "/api/v3/meta/tokens": {
- "get": {
- "summary": "List API tokens",
- "description": "Retrieve a list of all API tokens for the organization.\n\n**Note**: \nAPI Token APIs are available only with self-hosted **Enterprise** plans and cloud-hosted **Enterprise** plans.\n> **Beta**: These APIs are currently in beta and subject to change in future releases.",
- "tags": [
- "API Tokens"
- ],
- "security": [
- {
- "xc-token": []
- }
- ],
- "responses": {
- "200": {
- "description": "List of API tokens",
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "list": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/ApiTokenV3"
- }
- }
- }
- }
- }
- }
- },
- "401": {
- "$ref": "#/components/responses/UnauthorizedV3"
- },
- "403": {
- "$ref": "#/components/responses/ForbiddenV3"
- },
- "500": {
- "$ref": "#/components/responses/InternalServerErrorV3"
- }
- }
- },
- "post": {
- "summary": "Create API token",
- "description": "Create a new API token for the organization.\n\n**Note**: API Token APIs are available only with self-hosted **Enterprise** plans and cloud-hosted **Enterprise** plans.\n> **Beta**: These APIs are currently in beta and subject to change in future releases.",
- "tags": [
- "API Tokens"
- ],
- "security": [
- {
- "xc-token": []
- }
- ],
- "requestBody": {
- "required": true,
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "required": [
- "title"
- ],
- "properties": {
- "title": {
- "type": "string",
- "description": "Title / description for the API token",
- "example": "Github Integration"
- }
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "Created API token",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiTokenWithTokenV3"
- },
- "examples": {
- "created": {
- "value": {
- "id": 5,
- "title": "Github Integration",
- "token": "wxAFzFO2wwOf9ozVRjragBJ7KPWMaW2OGpklGqHh",
- "created_at": "2025-12-30 15:17:24+00:00",
- "updated_at": "2025-12-30 15:17:24+00:00"
- }
- }
- }
- }
- }
- },
- "400": {
- "$ref": "#/components/responses/BadRequestV3"
- },
- "401": {
- "$ref": "#/components/responses/UnauthorizedV3"
- },
- "403": {
- "$ref": "#/components/responses/ForbiddenV3"
- },
- "500": {
- "$ref": "#/components/responses/InternalServerErrorV3"
- }
- }
- }
- },
- "/api/v3/meta/tokens/{tokenId}": {
- "delete": {
- "summary": "Delete API token",
- "description": "Delete an API token by its ID.\n\n**Note**: API Token APIs are available only with self-hosted **Enterprise** plans and cloud-hosted **Enterprise** plans.\n> **Beta**: These APIs are currently in beta and subject to change in future releases.",
- "tags": [
- "API Tokens"
- ],
- "security": [
- {
- "xc-token": []
- }
- ],
- "parameters": [
- {
- "name": "tokenId",
- "in": "path",
- "required": true,
- "description": "ID of the API token to delete",
- "schema": {
- "type": "string",
- "example": "5"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Deleted API token",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/ApiTokenV3"
- }
- }
- }
- },
- "401": {
- "$ref": "#/components/responses/UnauthorizedV3"
- },
- "403": {
- "$ref": "#/components/responses/ForbiddenV3"
- },
- "404": {
- "$ref": "#/components/responses/NotFoundV3"
- },
- "500": {
- "$ref": "#/components/responses/InternalServerErrorV3"
- }
- }
- }
}
},
"components": {