Skip to content
Skip to Content
Coder Docs

Get file by ID

GET
/api/v2/files/{fileID}

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

fileID*string

File ID

Formatuuid

Response Body

OK

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/files/{fileID}" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
Empty