Retrieve messages

View as MarkdownOpen in Claude
Get messages between you and another user or your messages with all users.

Authentication

AuthorizationToken
The Prolific API uses API token to authenticate requests. You can create an API token directly from your settings. Your API token does not have an expiry date and carries full permission, so be sure to keep them secure. If your token is leaked, delete it and create a new one directly in the app. In your requests add `Authorization` header with the value `Token <your token>`.

Query parameters

user_idstringOptional

Another user ID, must be provided if no created_after date is provided.

created_afterstringOptional

Only fetch messages created after timestamp. Datetime in ISO8601 format. Must be provided if no user_id is provided. You can only fetch up to the last 30 days of messages.

excluded_sender_idsstringOptional

A comma-separated list of sender IDs whose messages should be excluded from the response. Maximum 10 IDs.

e.g. excluded_sender_ids=abc,def.

Response

Messages
resultslist of objects

Errors

4XX
Client Request Error