v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465453454.1 KB

Creates a collection in an AWS Region. You can add faces to the collection using the IndexFaces operation.

For example, you might create collections, one for each of your application users. A user can then index faces using the IndexFaces operation and persist results in a specific collection. Then, a user can search the collection for faces in the user-specific container.

When you create a collection, it is associated with the latest version of the face model version.

Collection names are case-sensitive.

This operation requires permissions to perform the rekognition:CreateCollection action. If you want to tag your collection, you also require permission to perform the rekognition:TagResource operation.

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

Headers

X-Amz-Target'RekognitionService.CreateCollection' required

Request body

CollectionIdstring required

ID for the collection that you are creating.

Tagsobject

A set of tags (key-value pairs) that you want to attach to the collection.

Response

Success

StatusCodeinteger

HTTP status code indicating the result of the operation.

CollectionArnstring

Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.

FaceModelVersionstring

Version number of the face detection model associated with the collection you are creating.

Example response

{
  "CollectionArn": "aws:rekognition:us-west-2:123456789012:collection/myphotos",
  "StatusCode": 200
}