Skip to main content
POST
Upload reference asset
Use a production DGrid Model API Key. You can skip uploading if you already have a suitable HTTPS link that the server can access.

Upload a file

Send one image or video in the multipart file field. The server detects the file type from its contents. Let cURL or your HTTP client set the multipart boundary automatically.
The public gateway may enforce a smaller request body limit. The file still needs to meet model-specific requirements such as dimensions, duration, frame rate, and input combinations.

Upload and submit for review

Set the optional query parameter submit_for_review to a single true to submit the file for review. Omit it or send false to upload only. A submitted video’s duration must be readable at upload time.
HTTP 201 confirms upload. A submission for review also returns an asset_id. Query that ID for the review result.
To use a signed upload URL in a new request after it expires, upload the file again to obtain a fresh URL. You can also use the ID of an Active asset as described in Create video.

Check review status

Send GET /v1/video-assets/{asset_id} with credentials for the same DGrid user. Use the asset_id from the upload response. The request has no body.
Status values are case-sensitive. Keep the asset ID and investigate any unrecognized status. You can resume polling with that ID if the local wait times out.

Upload and review errors

For 409 video_asset_submission_unconfirmed, the same asset is being submitted or upstream acceptance is uncertain. If you have an asset_id, query it. Otherwise, wait and retry submission with the same file. Contact DGrid support if the error persists. The video creation idempotency key applies to video creation requests only.

Authorizations

Authorization
string
header
required

Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.

Query Parameters

submit_for_review
boolean
default:false

Set to true to submit the file for review as part of the upload.

Body

multipart/form-data
file
file
required

Reference image or video file.

Response

Reference asset uploaded.

url
string<uri>

Signed HTTPS URL valid for 24 hours after issuance.

expires_at
string<date-time>

RFC 3339 timestamp when the signed URL expires.

content_type
string

MIME type detected from the file.

size_bytes
integer

File size in bytes.

width
integer

Detected width in pixels, when available.

height
integer

Detected height in pixels, when available.

duration_seconds
string

Video duration in seconds as a decimal string, when available.

fps
string

Average video frame rate as a decimal string, when available.

asset_id
string

Official asset ID returned when the file is submitted for review.