YourCrowd API
v1.0.0-alpha

Base URL
https://yourcrowd.ai.moda/api

The YourCrowd API offers a MTurk-compatible endpoint at https://yourcrowd.ai.moda/api/aws-compatible.

# Replace the following with your own credentials
yourcrowd_account_email='openapi@yourcrowd.testing.email.ai.moda'
yourcrowd_api_key = 'eyJhbGciOiJFUzI1NiJ9.eyJlbWFpbCI6ImRhdmlkLm1hbm91Y2hlaHJpQGFpLm1vZGEiLCJleHAiOjE3MTYyNjg4NjIsImlhdCI6MTY4NDczMjg2MiwiaXNzIjoiYXBpLnlvdXJjcm93ZC5haS5tb2RhIiwic3ViIjoiMTkzZWVkNjQtMWI2YS00NWEzLTkyN2MtZWQzY2Y5MjBlODI3In0.JRu-ZaMNizw77YtbupbBSWYitryQwbJ27fey4vJTdXlqTtKFMcDQX_jzm99LcbGf-9juRv4-4ZexPPu4_KXuPw'

yourcrowd_endpoint = 'https://yourcrowd.ai.moda/api/aws-compatible'
sts = boto3.client('sts', endpoint_url=yourcrowd_endpoint, aws_secret_access_key='sts', aws_access_key_id=yourcrowd_account_email)

credentials = sts.get_session_token(SerialNumber='anything_here', TokenCode=yourcrowd_api_key)

mturk = boto3.client('mturk', endpoint_url=yourcrowd_endpoint, aws_secret_access_key=credentials['Credentials']['SecretAccessKey'], aws_access_key_id=credentials['Credentials']['AccessKeyId'], aws_session_token=credentials['Credentials']['SessionToken'])

# You can now use this client as normal, no code changes required!
response = mturk.get_account_balance()

This is version v1.0.0-alpha of this API documentation. Last update on May 24, 2023.