GET /projects/{projectId}/assets/{assetId}

Get project asset by ID

Path parameters

  • projectId string Required

    Project ID

  • assetId string Required

    Asset ID

Query parameters

  • download string

    Boolean. Either “true” or “1” is accepted. Response will include a link URL to download asset from.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string Required
    • filename string Required
    • size integer Required

      Size of file in bytes

      Minimum value is 0.

    • checksum string Required

      SHA-256 checksum of file contents

    • created string Required

      ISO 8601 datetime

    • modified string Required

      ISO 8601 datetime

    • project_id string Required

      Project ID

    • job_id string | null Required

      Job ID that created this asset, if any

  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • code integer

      HTTP response code

    • name string

      Status text corresponding to the HTTP response code

    • description string

      Detailed error message

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code integer

      HTTP response code

    • name string

      Status text corresponding to the HTTP response code

    • description string

      Detailed error message

  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • code integer

      HTTP response code

    • name string

      Status text corresponding to the HTTP response code

    • description string

      Detailed error message

GET /projects/{projectId}/assets/{assetId}
curl \
 --request GET 'https://api.metafold3d.com/projects/{projectId}/assets/{assetId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "123",
  "size": 262144,
  "job_id": null,
  "created": "2006-01-02T22:04:05+00:00",
  "checksum": "sha256:2d063a84b13e5b23730a509cbb6ba42534acde451249a0b7409172a4f8814ef0",
  "filename": "part.stl",
  "modified": "2006-01-02T22:04:05+00:00",
  "project_id": "123"
}
Response examples (400)
{
  "code": 400,
  "name": "Bad Request",
  "description": "Expected parameter \"foo\""
}
Response examples (401)
{
  "code": 401,
  "name": "Unauthorzed",
  "description": "Token has expired"
}
Response examples (404)
{
  "code": 404,
  "name": "Not Found",
  "description": "Resource does not exist"
}