Skip to main content
GET
/
skills
/
files
List files for a skill
curl --request GET \
  --url https://asteragents.com/api/skills/files \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "files": [
    {
      "id": 123,
      "fileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "fileName": "<string>",
      "contentType": "<string>",
      "fileSize": 123,
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT token from Clerk authentication.

Must be from a user with org:admin role.

Query Parameters

skillId
integer
required

The skill ID to list files for

Response

Successfully retrieved files

success
boolean
files
object[]