Skip to main content
GET
/
api
/
v1
/
resources
/
{filename}
Get resource
curl --request GET \
  --url http://localhost:3001/api/v1/resources/{filename} \
  --cookie nut-session=
{
  "success": true,
  "data": {
    "resource": {
      "filename": "<string>",
      "mimeType": "<string>",
      "size": 123,
      "description": "<string>",
      "taskId": "<string>",
      "url": "<string>",
      "thumbnailUrl": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.coconut.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Path Parameters

filename
string
required

Resource filename

Query Parameters

download
boolean
default:false

If true, returns the file content

Response

Resource metadata or file content

success
boolean
required
data
object