Common Parameters - Amazon Mechanical Turk

WARNING

You are browsing the documentation for a deprecated version ('2014-08-15') of the Amazon Mechanical Turk Requester API. This version of the API will be deprecated and will be rendered unusable as of June 1st, 2019.

If you request against a legacy API version (https://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI-legacy/Welcome.html) on or after June 1, 2019, you will receive the following response:

This Requester API is no longer supported. Please use the latest API using the official AWS SDK. https://aws.amazon.com/getting-started/tools-sdks

The latest version of our API ('2017-01-17') provides you with additional tool choices and enables you to select from nine AWS Software Development Kits (SDKs) that have been widely adopted across the AWS community. This API can be accessed using the following AWS SDKs: Python/Boto (Boto3), Javascript (NodeJS or Browser), Java, .NET, Go, Ruby, PHP or C++. This version also makes it easier for customers to connect MTurk with other AWS services like S3, Lambda, Step Functions, Lex, Polly, Rekognition, Amazon SageMaker, AWS Batch, EC2, and more.

This version also updates naming conventions used in the API and adopts the AWS standard of Signature Version 4 to authenticate requests securely. The API uses REST requests and no longer requires that developers be familiar with SOAP protocol. These changes make the MTurk API consistent with AWS APIs, simplifying the on-boarding process for both new and existing AWS developers. The legacy MTurk Command Line Tools and .NET, Java, Ruby, and Perl SDKs were marked as deprecated in January 2018. We will be deprecating the legacy APIs as of June 1, 2019.

If you are on a legacy API, you must migrate to the latest version of our API. You can find documentation for the latest API here and the AWS SDKs here. Please check whether you need to migrate and review the technical migration guide.

For support, contact requestor-apilegacydeprecation-support@amazon.com.

 

Common Parameters

The Amazon Mechanical Turk Service accepts a set of parameters in the request common to every operation. Each required parameter must be included in a request for the request to be successful. Parameters common to all operations are explained in Common Request Parameters. For more information about the parameters for a specific operation, see the description of the operation in the Operations section of this reference.

Response groups specify what data is returned by Mechanical Turk for an operation request and are explained in Response Groups.

Common Request Parameters

Requests to the Amazon Mechanical Turk service can include the parameters described in the following table. Required parameters must be included with each request for the request to succeed.

Name Description Required

AWSAccessKeyId

The Requester's Access Key ID, a unique identifier that corresponds to a Secret Access Key and an Amazon.com account.

Type: String

Default: None

Yes

Service

The name of the Amazon Web Services service.

Type: String

Valid Values: AWSMechanicalTurkRequester

Default: None

Constraints: For REST requests only.

For SOAP requests the name of the service is part of the SOAP entry point, and does not need to be specified in the request.

Yes

Operation

The name of the operation.

Type: String

Default: None

Contraints: For REST requests only

For SOAP requests, the operation name is part of the SOAP message structure provided by your SOAP toolkit, and is not part of the request.

Yes

Signature

The signature for this request, an encrypted string calculated from elements of the request and the AWS access key that corresponds to your AWS Access Key ID. For information about how to calculate a Signature, see AWS Request Authentication.

Type: String

Default: None

Yes

Timestamp

The current time on your system. This value is included to validate against the Signature parameter.

Type: a dateTime in the Coordinated Universal Time (Greenwich Mean Time) time zone, such as 2005-01-31T23:59:59Z.

Default: None

Yes

ResponseGroup

A list of response groups. For more information about response groups, see Response Groups.

Type: String

Default: None

Yes

Version

Specifies what version of the API to use.

Type: String

Default: None. If not specified, the latest version of the API is used.

Constraints: Used only for REST requests

No

Validate

Deprecated

No

Credential

This parameter is reserved for future use.

Type: None

Default: None

Not used

Response Groups

Response groups specify what data is returned by the service for an operation, to control the data included in the response. Most operations in the Amazon Mechanical Turk service allow the use of two common response groups: Minimal and Request. Minimal provides a minimal set of results of the operation call. Request echoes the content of the original request. What gets included in Minimal varies depending upon the API call.

The following table lists the operations that can return more response groups than Minimal and Request.

Operation Allowable Response Groups Default Response Groups

CreateHit

Request, Minimal, HITDetail, HITQuestion, HITAssignmentSummary

Minimal

GetAssignment

Request, Minimal, AssignmentFeedback, HITDetail, HITQuestion

Minimal

GetAssignmentsForHIT

Request, Minimal, AssignmentFeedback

Minimal

GetHIT

Request, Minimal, HITDetail, HITQuestion, HITAssignmentSummary

Minimal, HITDetail, HITQuestion

GetRequesterStatistic

Request, Minimal, Parameters

Minimal, Parameters

GetRequesterWorkerStatistic

Request, Minimal, Parameters

Minimal, Parameters

SearchHITS

Request, Minimal, HITDetail, HITQuestion, HITAssignmentSummary

Minimal, HITDetail, HITAssignmentSummary

Response Groups Content

The following table lists the elements returned in the response groups other than the Minimal and Request groups. The table also lists the response group elements associated with each response group.

Response Group Response Group Elements (alpha order)

AssignmentFeedback

RequesterFeedback

For more information on this element, see the Assignment data structure.

HITAssignmentSummary

NumberOfAssignmentsAvailable

NumberOfAssignmentsCompleted

NumberOfAssignmentsPending

For more information on these elements, see the HIT data structure.

HITDetail

AssignmentDurationInSeconds

AutoApprovalDelayInSeconds

CreationTime

Description

Expiration

Keywords

HITGroupId

HITLayoutId

HITReviewStatus

HITStatus

MaxAssignments

QualificationRequirement

RequesterAnnotation

Reward

Title

For more information on these elements, see the HIT data structure.

HITQuestion

Question

For more information on this elements, see the HIT data structure.

Parameters

Statistic

TimePeriod