Profiles API

Run your Profiles project programmatically and check its run status.

You can use the Profiles API to programmatically run your Profiles project and check its run status.


Prerequisites

Authentication

The Profiles API uses Bearer authentication in the following format:

Authorization: Bearer <PERSONAL_ACCESS_TOKEN>

Base URL

Use the base URL for your API requests depending on your region:

Run project

You can trigger the run of a Profiles project using the below endpoint:

POST
/sources/<sourceID>/start
info

To obtain the source ID, go to your project in the RudderStack dashboard and note it down from the URL:

Path parameters

sourceId
Required
String
ID of the source project for which you want to trigger a run.

Request body

Authorization
Required
String
Bearer token for authorization

Example request

Example response

{
  "runId": "<run_id>"
}

Response codes

CodeDescription
200Run started for the Profiles project. RudderStack also returns a run ID for the project.
409Profiles project is already running for the specified source ID.

Get run status

You can get the run status of your Profiles project using the below endpoint:

GET
/sources/{sourceId}/runs/{runId}/status

Path parameters

sourceId
Required
String
ID of the source project for which you want to trigger a run.
runId
Required
String
ID of the Profiles project’s run.

info
You can obtain the runId as the response of the above API endpoint (/sources/<sourceID>/start).

Example request

Example response

{
  "jobId": "string",
  "jobRunId": "string",
  "status": "string",
  "startedAt": "2024-05-31T06:48:08.228Z",
  "finishedAt": "2024-05-31T06:48:08.228Z",
  "tasks": [{
    "taskId": "string",
    "taskRunId": "string",
    "startedAt": "2024-05-31T06:48:08.228Z",
    "finishedAt": "2024-05-31T06:48:08.228Z"
  }]
}

Response codes

CodeDescription
200Successfully retrieved the run status of the project.

Questions? Contact us by email or on Slack