Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

List current media pricing configuration choices

Generated from the checked-in source. Do not edit this reference by hand.

GET /api/v1/providers/{provider}/media-rate-models

Installation read authority only. Named model and API-key choices include current qualified active offer bindings and syntactically validated media-schema constraints. This does not qualify dispatch protocols or provide prices. Disabled routes, personal credentials, invalid schemas and foreign Providers are excluded. Revisions remain exact strings; clients keep binding identifiers out of product UI and publication rechecks current state. Cursor ordering uses model alias, including rows skipped for invalid schemas.

Operation: listSupplierMediaRateModels.

Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.

JSON
[
{
"operatorBearer": []
}
]

Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.

Shell
curl --fail-with-body -X GET "$NIU_ORIGIN/api/v1/providers/{provider}/media-rate-models" \
-H "Authorization: Bearer $NIU_MEMBER_TOKEN"

Location: path. Required.

JSON
{
"type": "string",
"format": "uuid"
}

Location: query. Optional.

JSON
{
"type": "string",
"minLength": 1,
"maxLength": 256
}

Location: query. Optional.

JSON
{
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}

No request body is declared.

Bounded configuration choices

Content type: application/json.

JSON
{
"type": "object",
"additionalProperties": false,
"required": [
"data",
"has_more",
"next_after"
],
"properties": {
"has_more": {
"type": "boolean"
},
"next_after": {
"type": [
"string",
"null"
]
},
"data": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"model_alias",
"api_key_name",
"offer_revision",
"vendor_revision",
"model_revision",
"schema_revision",
"channel",
"resolutions",
"reference_video"
],
"properties": {
"model_alias": {
"type": "string"
},
"api_key_name": {
"type": "string"
},
"offer_revision": {
"type": "string",
"format": "uuid"
},
"vendor_revision": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
},
"model_revision": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
},
"schema_revision": {
"type": "string"
},
"channel": {
"type": "string"
},
"resolutions": {
"type": "array",
"maxItems": 64,
"items": {
"type": "string"
}
},
"reference_video": {
"type": "boolean"
}
}
}
}
}
}

Invalid cursor or page size

Valid management session required

Installation administration required

Durable storage unavailable

Installation read authority only. Named model and API-key choices include current qualified active offer bindings and syntactically validated media-schema constraints. This does not qualify dispatch protocols or provide prices. Disabled routes, personal credentials, invalid schemas and foreign Providers are excluded. Revisions remain exact strings; clients keep binding identifiers out of product UI and publication rechecks current state. Cursor ordering uses model alias, including rows skipped for invalid schemas.