跳转到主要内容
POST
/
oauth
/
client
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/oauth/client \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "homepage": "<string>",
  "redirectUris": [
    "<string>"
  ],
  "description": "<string>",
  "logo": "<string>",
  "scopes": [
    "table|create"
  ]
}
'
{
  "clientId": "<string>",
  "name": "<string>",
  "homepage": "<string>",
  "redirectUris": [
    "<string>"
  ],
  "secrets": [
    {
      "id": "<string>",
      "secret": "<string>",
      "lastUsedTime": "<string>"
    }
  ],
  "scopes": [
    "<string>"
  ],
  "logo": "<string>"
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
name
string
必填
homepage
string<uri>
必填
redirectUris
string<uri>[]
必填
Minimum array length: 1
description
string
scopes
enum<string>[]
可用选项:
table|create,
table|delete,
table|export,
table|import,
table|read,
table|update,
table|trash_read,
table|trash_update,
table|trash_reset,
view|create,
view|delete,
view|read,
view|update,
field|create,
field|delete,
field|read,
field|update,
record|comment,
record|create,
record|delete,
record|read,
record|update,
automation|create,
automation|delete,
automation|read,
automation|update,
user|email_read

响应

201 - application/json

Returns the created OAuth application

clientId
string
必填
name
string
必填
homepage
string<uri>
必填
redirectUris
string<uri>[]
必填
secrets
object[]
scopes
string[]
Last modified on December 10, 2025