> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# REDCap

> How to set up the REDCap connector, plus the actions that are available.

![REDCap](https://stackone-logos.com/api/redcap/filled/svg)

Previewv0.1.0[See changelog](https://docs.stackone.com/connectors/redcap/changelog.md)

[55 actions](#actions) · 2 auth methods

Healthcare
IAM
Documents
Analytics

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [API Token · Connector Profile](https://docs.stackone.com/connectors/redcap/guides/connector-profile/api-token.md)
>
> Use this if every account linked through this profile belongs to the same REDCap instance, such as your own institution'...

> [card] [API Token (Multiple Companies) · Connector Profile](https://docs.stackone.com/connectors/redcap/guides/connector-profile/api-token-multiple-companies.md)
>
> Use this if accounts linked through this profile belong to different REDCap instances, for example when your customers e...

**3. Link an Account**

Link an account [from the dashboard](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [API Token · Link Account](https://docs.stackone.com/connectors/redcap/guides/link-account/api-token.md)

> [card] [API Token (Multiple Companies) · Link Account](https://docs.stackone.com/connectors/redcap/guides/link-account/api-token-multiple-companies.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

Authentication type

Select all
|
Clear

API Token

API Token (Multiple Companies)

No auth methods found

55 actions

ActionDescription

Export Arms`redcap_export_arms`

Retrieves the list of arms (study branches) in a longitudinal REDCap project. Each arm is returned with its arm number a...

Import Arms`redcap_import_arms`

Creates or modifies arms in a longitudinal REDCap project. With `override=0` arms are added or renamed without deleting...

Delete Arms`redcap_delete_arms`

Removes one or more arms from a longitudinal REDCap project by arm number. Deleting an arm also permanently deletes ever...

Export DAGs`redcap_export_dags`

Returns every Data Access Group defined in the project with its display name, unique group name and numeric group ID. Re...

Export User DAG Assignments`redcap_export_user_dag_assignments`

Returns the mapping of users to Data Access Groups in the project, pairing each username with the unique group name of t...

Import DAGs`redcap_import_dags`

Creates new Data Access Groups or updates existing ones. A record with a blank unique\_group\_name creates a DAG (REDCap g...

Import User DAG Assignments`redcap_import_user_dag_assignments`

Assigns users to Data Access Groups by unique group name, or removes a user from all DAGs by passing an empty group name...

Switch DAG`redcap_switch_dag`

Switches the calling API user's own active Data Access Group to another DAG enabled for them in the project's DAG Switch...

Delete DAGs`redcap_delete_dags`

Permanently removes one or more Data Access Groups from the project, identified by their unique\_group\_name values. The D...

Export Events`redcap_export_events`

Retrieves the list of events (timepoints or phases within an arm) in a longitudinal REDCap project, optionally filtered...

Import Events`redcap_import_events`

Creates or modifies events in a longitudinal REDCap project. With `override=0` events are added or modified without dele...

Delete Events`redcap_delete_events`

Removes one or more events from a longitudinal REDCap project, identified by their unique event names, together with all...

Export File Repository File`redcap_export_file_repository_file`

Downloads a single file from the project-level File Repository by its doc\_id, returned as base64-encoded content.

List File Repository`redcap_list_file_repository`

Lists everything one level inside a folder of the project File Repository - sub-folders, each with its own folder\_id, an...

Create File Repository Folder`redcap_create_file_repository_folder`

Creates a new folder in the project-level File Repository and returns its folder\_id. The folder can optionally be nested...

Import File Repository File`redcap_import_file_repository_file`

Uploads a single file into the project-level File Repository, optionally into an existing sub-folder. Supply the file as...

Delete File Repository File`redcap_delete_file_repository_file`

Soft-deletes a single file from the project-level File Repository by its doc\_id, moving it to the project File Repositor...

Export File`redcap_export_file`

Downloads a file stored in a record-level file-upload field, returned as base64-encoded content. Also works for Signatur...

Import File`redcap_import_file`

Uploads a file into a record-level file-upload field on an existing record. Supply the file as base64-encoded content; i...

Delete File`redcap_delete_file`

Removes the file stored in a record-level file-upload field, leaving the field empty. Also works for Signature fields (f...

Export Instrument Event Mappings`redcap_export_instrument_event_mappings`

Retrieves the mapping of instruments (forms) to events in a longitudinal REDCap project, showing which instruments are p...

Export Instrument PDF`redcap_export_instrument_pdf`

Generates a PDF of one or more data collection instruments, blank or populated with a record's data — the same PDF offer...

Export Instruments`redcap_export_instruments`

Retrieves the list of all instruments (forms) defined in a REDCap project, each with its unique name and display label....

Import Instrument Event Mappings`redcap_import_instrument_event_mappings`

Creates or modifies the mapping of instruments (forms) to events in a longitudinal REDCap project, controlling which ins...

Export Logging`redcap_export_logging`

Retrieves audit trail entries from a project's activity log - data exports, imports, record edits and deletions, user ev...

Export Field Names`redcap_export_field_names`

Returns the export/import-specific version of field names for all fields (or a single field) in a project. Its primary p...

Export Metadata`redcap_export_metadata`

Retrieves the complete data dictionary (metadata) for a REDCap project - all fields, instruments, field types, validatio...

Import Metadata`redcap_import_metadata`

Creates or replaces the data dictionary (metadata) of a REDCap project - adding or updating fields, forms, validation ru...

Export Project Info`redcap_export_project_info`

Retrieves the project's metadata and configuration settings — title, production status, longitudinal and survey flags, P...

Export Project XML`redcap_export_project_xml`

Exports the entire project — records, events, arms, instruments, fields and project attributes — as a single CDISC ODM X...

Export REDCap Version`redcap_export_version`

Returns the version number of the REDCap instance as a bare plain-text string (for example 17.6.5). The simplest REDCap...

Create Project`redcap_create_project`

Creates one new REDCap project from scratch, or from a complete exported project design supplied as CDISC ODM XML in the...

Import Project Info`redcap_import_project_info`

Updates project-level settings on an existing project — title, purpose, PI information, longitudinal and survey flags an...

Export Records`redcap_export_records`

Reads record data from a REDCap project — the primary way to pull entered study data. Returns all or a subset of records...

Generate Next Record Name`redcap_generate_next_record_name`

Returns what the next record ID would be if a new record were created right now, by finding the current maximum numerica...

Import Records`redcap_import_records`

Writes record data into a REDCap project, creating new records or updating existing ones from a JSON payload. Overwrite...

Randomize Record`redcap_randomize_record`

Triggers the randomization of an existing record against a specific randomization definition, performing the same action...

Rename Record`redcap_rename_record`

Changes the record ID of an existing record while preserving all of its data, history and relationships. Useful when con...

Delete Records`redcap_delete_records`

Permanently deletes records or parts of records from a REDCap project. Can remove whole records, a single instrument's d...

Export Repeating Instruments And Events`redcap_export_repeating_forms_events`

Retrieves the list of instruments and events that are configured as repeating in a project. It returns only the repeatin...

Import Repeating Instruments And Events`redcap_import_repeating_forms_events`

Configures which instruments and events in a project are designated as repeating. It does not import record data — it re...

Export Reports`redcap_export_reports`

Runs a saved REDCap report by its report ID and returns its record-level data as JSON, using the field selection, filter...

Export Survey Access Code`redcap_export_survey_access_code`

Returns the short alphanumeric survey access code for a specific record and survey instrument, which a participant can t...

Export Survey Link`redcap_export_survey_link`

Generates the unique, record-specific survey URL for a given record and survey instrument, for distribution by email, SM...

Export Survey Participants`redcap_export_survey_participants`

Retrieves the survey participant list for one survey-enabled instrument, returning each participant's contact details, i...

Export Survey Queue Link`redcap_export_survey_queue_link`

Returns the unique survey queue URL for a record, which presents every survey whose queue conditions are met in a single...

Export Survey Return Code`redcap_export_survey_return_code`

Returns the unique Save and Return Later code that lets a respondent resume an incomplete survey response from its last...

Export User Role Assignments`redcap_export_user_role_assignments`

Returns the current mapping of users to the user roles they are assigned to. Every project user is listed; users who are...

Export User Roles`redcap_export_user_roles`

Returns every custom user role defined in the project with its system ID, human-readable label and full set of permissio...

Import User Role Assignments`redcap_import_user_role_assignments`

Assigns users to existing user roles, or removes them from their current role by passing an empty unique\_role\_name. A DA...

Import User Roles`redcap_import_user_roles`

Creates new custom user roles or updates existing ones. A record with a blank unique\_role\_name creates a role; a record...

Delete User Roles`redcap_delete_user_roles`

Permanently removes one or more custom user roles from the project, identified by their unique\_role\_name system IDs. Rol...

Export Users`redcap_export_users`

Returns every user in the project with their profile fields and full set of permission flags, including per-instrument f...

Import Users`redcap_import_users`

Adds existing REDCap system users to the project and sets their permissions, or updates the permissions of users already...

Delete Users`redcap_delete_users`

Removes one or more users from the project by username. The users' REDCap system accounts are not deleted, only their as...


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.