v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-143021,9861.6 MB

Lists models created with the <code>CreateModel</code> API.

post/#X-Amz-Target=SageMaker.ListModels

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'SageMaker.ListModels' required

Request body

SortBy'Name' | 'CreationTime'

Sorts the list of results. The default is <code>CreationTime</code>.

SortOrder'Ascending' | 'Descending'

The sort order for results. The default is <code>Descending</code>.

NextTokenstring

If the response to a previous <code>ListModels</code> request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of models, use the token in the next request.

MaxResultsinteger

The maximum number of models to return in the response.

NameContainsstring

A string in the model name. This filter returns only models whose name contains the specified string.

CreationTimeBeforestring date-time

A filter that returns only models created before the specified time (timestamp).

CreationTimeAfterstring date-time

A filter that returns only models with a creation time greater than or equal to the specified time (timestamp).

Response

Success

NextTokenstring

If the response is truncated, SageMaker returns this token. To retrieve the next set of models, use it in the subsequent request.