Amazon Mechanical Turk
API Reference (API Version 2017-01-17)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.



The CreateHITType operation creates a new HIT type.

CreateHITType lets you be explicit about which HITs ought to be the same type. It also gives you error checking, to ensure that you call the CreateHITWithHITType operation with a valid HIT type ID.

If you register a HIT type with values that match an existing HIT type, the HIT type ID of the existing type will be returned.

Request Syntax

{ "Title": String, "Description": String, "Reward": String, "AssignmentDurationInSeconds": Integer, "Keywords": String, "AutoApprovalDelayInSeconds": Integer, "QualificationRequirements": QualificationRequirementList }

Request Parameters

The request accepts the following data in JSON format:

Name Description Required


The title of the HIT. A title should be short and descriptive about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title appears in search results, and everywhere the HIT is mentioned.

Type: String



A general description of the HIT. A description includes detailed information about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT description appears in the expanded view of search results, and in the HIT and assignment screens. A good description gives the user enough information to evaluate the HIT before accepting it.

Type: String



The US Dollar amount the Requester will pay a Worker for successfully completing the HIT.

Type: String



The amount of time, in seconds, that a Worker has to complete the HIT after accepting it. If a Worker does not complete the assignment within the specified duration, the assignment is considered abandoned. If the HIT is still active (that is, its lifetime has not elapsed), the assignment becomes available for other users to find and accept.

Type: Integer



One or more words or phrases that describe the HIT, separated by commas. These words are used in searches to find HITs.

Type: String



The number of seconds after an assignment for the HIT has been submitted, after which the assignment is considered Approved automatically unless the Requester explicitly rejects it.

Type: Integer



A condition that a Worker's Qualifications must meet before the Worker is allowed to accept and complete the HIT.

Type: QualificationRequirementList


Response Elements

A successful request for the CreateHITWithHITType operation returns a HITTypeId. A HITTypeId can be up to 255 bytes long.


The following example shows how to use the CreateHITType operation:

Sample Request

The following example creates a new HIT type.

POST / HTTP/1.1 Host: Content-Length: <PayloadSizeBytes> X-Amz-Date: <Date> { Title:"Compare two photographs", Description:"Compare two pictures and pick one", Reward:0.5, AssignmentDurationInSeconds:0, Keywords:"location, photograph, image, identification, opinion" }

Sample Response

The following is an example response:

HTTP/1.1 200 OK x-amzn-RequestId: <RequestId> Content-Type: application/x-amz-json-1.1 Content-Length: <PayloadSizeBytes> Date: <Date> { HITTypeId:"789RVWYBAZW00EXAMPLE951RVWYBAZW00EXAMPLE" }