v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465453454.1 KB

Returns list of collection IDs in your account. If the result is truncated, the response also provides a NextToken that you can use in the subsequent request to fetch the next set of collection IDs.

For an example, see Listing collections in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:ListCollections action.

post/#X-Amz-Target=RekognitionService.ListCollections

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'RekognitionService.ListCollections' required

Request body

NextTokenstring

Pagination token from the previous response.

MaxResultsinteger

Maximum number of collection IDs to return.

Response

Success

CollectionIdsCollectionId[]

An array of collection IDs.

NextTokenstring

If the result is truncated, the response provides a <code>NextToken</code> that you can use in the subsequent request to fetch the next set of collection IDs.

FaceModelVersionsString[]

Version numbers of the face detection models associated with the collections in the array <code>CollectionIds</code>. For example, the value of <code>FaceModelVersions[2]</code> is the version number for the face detection model used by the collection in <code>CollectionId[2]</code>.

Example response

{
  "CollectionIds": [
    "myphotos"
  ]
}