🎉 Kimi K2.6 has been released with improved long-context coding stability.
curl --request GET \
--url https://api.moonshot.ai/v1/files \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"id": "<string>",
"object": "file",
"bytes": 123,
"created_at": 123,
"filename": "<string>",
"status": "ready",
"status_details": "<string>"
}
]
}Lists all files uploaded by the current user.
curl --request GET \
--url https://api.moonshot.ai/v1/files \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"id": "<string>",
"object": "file",
"bytes": 123,
"created_at": 123,
"filename": "<string>",
"status": "ready",
"status_details": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://platform.kimi.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Usage Example
file_list = client.files.list()
for file in file_list.data:
print(file) # Inspect the metadata of each file
The Authorization header expects a Bearer token. Use an MOONSHOT_API_KEY as the token. This is a server-side secret key. Generate one on the API keys page in your dashboard.
Was this page helpful?