NativeAds AI Assets API
The Assets API from NativeAds AI — 5 operation(s) for assets.
The Assets API from NativeAds AI — 5 operation(s) for assets.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nativeads-ai:nativeads-ai-assets-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: NativeAds Headless Assets API
version: 1.0.0
description: 'The headless REST API for programmatic creative generation. Authenticate with a per-user API key (`Authorization: Bearer nak_...`). This reference lists only the endpoints an API key may call; generation endpoints are asynchronous (submit returns an id, then poll).'
license:
name: Commercial
url: https://www.nativeads.ai/
servers:
- url: https://creative-v1.nativeads.ai/v1
description: NativeAds API Server
security:
- BearerAuth: []
tags:
- name: Assets
paths:
/assets/initiate-upload:
post:
summary: Initiate file upload
description: Get presigned URLs for secure direct-to-storage uploads
operationId: initiateUpload
tags:
- Assets
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InitiateUploadRequest'
responses:
'201':
description: Upload URLs generated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/InitiateUploadResponse'
'400':
description: Invalid request data
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit exceeded
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/assets/confirm-upload:
post:
summary: Confirm successful upload
description: Marks upload as complete and triggers asset processing
operationId: confirmUpload
tags:
- Assets
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConfirmUploadRequest'
responses:
'200':
description: Upload confirmed and processing started
content:
application/json:
schema:
$ref: '#/components/schemas/Asset'
'400':
description: Invalid upload data
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Upload not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/assets/cancel-upload/{uploadId}:
post:
summary: Cancel an in-progress upload
description: Cancels an upload and cleans up any temporary resources
operationId: cancelUpload
tags:
- Assets
parameters:
- name: uploadId
in: path
required: true
schema:
type: string
format: uuid
description: Unique identifier of the upload to cancel
responses:
'200':
description: Upload cancelled successfully
content:
application/json:
schema:
$ref: '#/components/schemas/CancelUploadResponse'
'404':
description: Upload not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/assets/{assetId}:
get:
summary: Get asset details
operationId: getAsset
tags:
- Assets
parameters:
- name: assetId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Asset details retrieved
content:
application/json:
schema:
$ref: '#/components/schemas/Asset'
'404':
description: Asset not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/brands/{brandId}/assets:
get:
summary: List brand assets
description: Retrieve assets with filtering and pagination
operationId: listBrandAssets
tags:
- Assets
parameters:
- name: brandId
in: path
required: true
schema:
type: string
format: uuid
- name: type
in: query
schema:
type: string
enum:
- image
- logo
- video
- document
- model
- mask
- text
- walmart_preview
- environment
- font
- name: status
in: query
schema:
type: string
enum:
- uploading
- uploaded
- processing
- complete
- failed
- canceled
- name: tags
in: query
schema:
type: array
items:
type: string
- name: campaignId
in: query
schema:
type: string
format: uuid
- name: page
in: query
schema:
type: integer
default: 1
- name: limit
in: query
schema:
type: integer
default: 20
maximum: 100
- name: sort
in: query
schema:
type: string
enum:
- createdAt
- -createdAt
- fileName
- -fileName
default: -createdAt
responses:
'200':
description: Assets retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/CategorizedAssetList'
'400':
description: Invalid request parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Brand not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
InitiateUploadRequest:
type: object
required:
- files
- brandId
properties:
brandId:
type: string
format: uuid
categoryId:
type: string
format: uuid
files:
type: array
items:
type: object
required:
- fileName
- fileType
- fileSize
- dimension
properties:
fileName:
type: string
maxLength: 1000
fileType:
type: string
description: The file's MIME type. image/vnd.adobe.photoshop (a .psd or .psb file) is accepted only where template import of PSD files is enabled, for signed-in users.
enum:
- image/jpeg
- image/jpg
- image/pjpeg
- image/jfif
- image/png
- image/gif
- image/tiff
- video/mp4
- video/quicktime
- application/pdf
- application/msword
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- font/ttf
- font/otf
- font/woff
- font/woff2
- font/sfnt
- application/font-sfnt
- application/x-font-ttf
- application/x-font-otf
- application/vnd.ms-opentype
- image/vnd.adobe.photoshop
fileSize:
type: integer
maximum: 524288000
isLogo:
type:
- boolean
- 'null'
description: Indicates if the file is a logo
dimension:
$ref: '#/components/schemas/Dimension'
duration:
type:
- number
- 'null'
format: float
minimum: 0
maximum: 86400
description: 'Client-probed duration in seconds for video files. Stored on assets.duration_sec so Seedance reference validation can run before process_uploaded_video finishes. PROVISIONAL: this is a client assertion, not a measurement, and process_uploaded_video overwrites it with the server-probed value. format:float makes it a float32 in Go; the round-trip loses about 5e-8 at the Seedance boundaries (2 / 30), which the validator absorbs with an epsilon rather than rejecting an exactly-1.8s video. nullable:true is what makes the generated field a POINTER, which asset.go requires: it distinguishes "client sent no duration" from "client sent 0", and only the absent case may skip the range check. An earlier edit to this description dropped nullable:true without regenerating, so the committed model kept a pointer the spec no longer described and the next full regeneration broke the build (NAT-1862). format has nothing to do with it -- see isLogo above, which is a pointer for the same reason.'
InitiateUploadResponse:
type: object
properties:
uploads:
type: array
items:
type: object
required:
- uploadId
- assetId
- uploadUrl
- expires
properties:
uploadId:
type: string
format: uuid
assetId:
type: string
format: uuid
uploadUrl:
type: string
format: uri
expires:
type: string
format: date-time
AssetMetadata:
type: object
required:
- fileName
- fileType
- fileSize
- type
- dimension
- duration
- description
properties:
fileName:
type: string
example: logo-dark.png
fileType:
type: string
example: image/jpeg
fileSize:
type: integer
type:
type: string
enum:
- image
- logo
- video
- document
- environment
- font
- mask
- model
- text
- walmart_preview
dimension:
allOf:
- $ref: '#/components/schemas/Dimension'
duration:
type: string
description:
type: string
AssetQualityAssessment:
type: object
description: Wrapper model tracking overall quality assessment status
required:
- assetId
- status
properties:
assetId:
type: string
format: uuid
description: ID of the asset being assessed
status:
$ref: '#/components/schemas/AssessmentStatus'
description: Current status of the quality assessment workflow
AssetQualityTagReasonCodeEnum:
type: string
enum:
- low-quality-scores
- low-resolution
- lossy-format
- other
x-enum-varnames:
- AssetQualityTagReasonCodeLowQualityScores
- AssetQualityTagReasonCodeLowResolution
- AssetQualityTagReasonCodeLossyFormat
- AssetQualityTagReasonCodeOther
description: Specific reason for the quality assessment
AssessmentStatus:
type: string
enum:
- processing
- complete
- failed
x-enum-varnames:
- AssessmentStatusProcessing
- AssessmentStatusComplete
- AssessmentStatusFailed
description: Overall status of quality assessment operation (both immediate checks and background workflow)
ErrorError:
type: object
required:
- code
- message
properties:
code:
type: string
example: INVALID_REQUEST
message:
type: string
example: Invalid input data provided
details:
description: "Additional error context (optional, can be object or array). Absent on\nmost errors; the message is the only guaranteed human-readable field.\n\nUpload rejections populate it, because a client needs to act on the\nanswer rather than parse it. `POST /v1/assets/initiate-upload` and\n`POST /v1/assets/confirm-upload` return:\n\n- `reason` — `unsupported_declared_type` when the declared MIME type is\n not accepted, or `unsupported_file_contents` when the uploaded bytes\n are a different format than declared (an AVIF saved with a `.jpg`\n name, say). Only confirm-upload can report the second: it is the\n first point that reads the real bytes.\n- `declaredType` — the MIME type the client sent.\n- `detectedFormat` — the format the bytes actually are, on\n `unsupported_file_contents` only.\n- `supportedFormats` — every format an upload may be.\n- `retryable` — `false` on both, meaning the same bytes will be\n rejected again. Clients must not retry these.\n"
example:
reason: unsupported_file_contents
declaredType: image/jpeg
detectedFormat: AVIF
retryable: false
supportedFormats:
- DOC
- DOCX
- GIF
- JPEG
- MP4
- PDF
- PNG
- QuickTime
- TIFF
ConfirmUploadRequest:
type: object
required:
- uploadId
properties:
uploadId:
type: string
format: uuid
categoryId:
type: string
format: uuid
description: Optional category ID to assign the asset to
Error:
description: Standard error response
type: object
required:
- error
- requestId
properties:
error:
$ref: '#/components/schemas/ErrorError'
requestId:
type: string
format: uuid
description: Unique identifier for the request, useful for tracing.
AssetQualityTagLevelEnum:
type: string
enum:
- ok
- warning
- critical
x-enum-varnames:
- AssetQualityTagLevelOk
- AssetQualityTagLevelWarning
- AssetQualityTagLevelCritical
description: Severity level of the quality issue
CategorizedAssetList:
type: object
required:
- categories
properties:
categories:
type: array
items:
type: object
required:
- id
- name
- assets
properties:
id:
type: string
description: Category identifier - UUID string for user-created categories, or predefined strings like 'general' for default categories
example: general
name:
type: string
assets:
type: array
items:
$ref: '#/components/schemas/Asset'
AssetQualityTag:
type: object
required:
- level
properties:
level:
$ref: '#/components/schemas/AssetQualityTagLevelEnum'
reasonCode:
$ref: '#/components/schemas/AssetQualityTagReasonCodeEnum'
reason:
type: string
description: Human-readable description of the quality issue. This might come from vision-LLMs.
example: Image appears blurry due to low resolution.
recommendation:
type: string
description: Recommended action to fix the quality issue.
example: Upload higher resolution image (Above 1000 pixels).
Asset:
type: object
required:
- id
- brandId
- url
- status
- createdAt
- updatedAt
properties:
id:
type: string
format: uuid
example: 123e4567-e89b-12d3-a456-426614174000
brandId:
type: string
format: uuid
example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
status:
type: string
enum:
- uploading
- uploaded
- processing
- complete
- failed
- canceled
url:
type: string
thumbnailUrl:
type: string
displayUrl:
type:
- string
- 'null'
format: url
description: A screen-size rendition (2048 px long edge at most) for a full-screen viewer. Never the original file of a large image. Use the full URL only to download.
metadata:
$ref: '#/components/schemas/AssetMetadata'
tags:
type: array
items:
type: string
autoGeneratedTags:
type: array
items:
type: string
usedInCampaigns:
type: array
items:
type: string
format: uuid
assetQualityTags:
type: array
items:
$ref: '#/components/schemas/AssetQualityTag'
qualityAssessment:
allOf:
- $ref: '#/components/schemas/AssetQualityAssessment'
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
version:
type: integer
default: 0
Dimension:
type: object
required:
- width
- height
properties:
width:
type: integer
description: Width of the image in pixels.
example: 1024
height:
type: integer
description: Height of the image in pixels.
example: 1024
CancelUploadResponse:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: Upload cancelled successfully
required:
- success
- message
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT token for authentication.