v4

OpenAPI 3.1.02026-07-31121440441.0 KB
credentials

Create credential pool

Create a new workspace-level credential pool. Credential pools contain username/password pairs that can be assigned to participants when they start a study. This allows researchers to provide pre-provisioned credentials for third-party platforms. The credentials are provided as a CSV string where each line contains a username and password separated by a comma (e.g., "user1,pass1\nuser2,pass2").

post/api/v1/credentials/

Headers

Authorizationstring required

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>.

Request body

credentialsstring required

CSV-formatted credentials (username,password per line)

workspace_idstring required

The ID of the workspace this credential pool belongs to

Response

Credential pool created successfully

credential_pool_idstring

The unique identifier for the created credential pool