跳转到主要内容
POST
/
base
/
{baseId}
/
chat
/
resolve-attachments
cURL
curl --request POST \
  --url https://app.teable.ai/api/base/%7BbaseId%7D/chat/resolve-attachments \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"tokens":["string"],"nameHints":{"property1":"string","property2":"string"}}'
{
  "success": true,
  "attachments": [
    {
      "token": "<string>",
      "url": "<string>",
      "name": "<string>",
      "mimetype": "<string>",
      "size": 123,
      "path": "<string>"
    }
  ],
  "error": "<string>"
}

授权

Authorization
string
header
必填

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

路径参数

baseId
string
必填

请求体

application/json
tokens
string[]
必填

Array of attachment tokens to resolve

Minimum array length: 1
nameHints
object

Optional map of token -> filename for name hints

响应

200 - application/json

Resolved attachments with URLs

success
boolean
必填
attachments
object[]
error
string
Last modified on March 5, 2026