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

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