Projects

API Reference - Projects resource

This is an object representing your Currents project. You can retrieve the list of projects for your organization, get specific project details, and retrieve the list of runs for a project.

List the projects associated with your organization

GET v1/projects

Query Parameters

Name
Type
Description

limit

1-50

Pagination limit 1-50. Default 10.

starting_before

String

Pagination cursor. See Pagination

ending_after

String

Pagination cursor. See Pagination

{
    "status": "OK",
    "has_more": false,
    "data": [{
        "projectId": "emdaGd", // project id
        "name": "Hello Currents", // project name
        "createdAt": "2022-01-14T16:15:18.852Z", // creation date
        "inactivityTimeoutSeconds": 7200, // timeout value
        "cursor": "61e1a196954ca800138aae97", // pagination cursor
        "failFast": true // enable fail-fast strategy
    }]
}

Get project item

GET v1/projects/:projectId

Path Parameters

Name
Type
Description

projectId*

String

Project ID

List the runs associated with the project

GET v1/projects/:projectId/runs

Path Parameters

Name
Type
Description

projectId*

String

Project ID

Query Parameters

Name
Type
Description

limit

1-50

Pagination limit 1-50. Default 10.

starting_before

String

Pagination cursor. See Pagination

ending_after

String

Pagination cursor. See Pagination

Get project insights - aggregated metrics for runs, spec files and tests

GET v1/projects/:projectId/insights

Path Parameters

Name
Type
Description

projectId*

String

Project ID

Query Parameters

Name
Type
Description

date_start*

String

ISO Date format indicating the start date for the query

date_end*

String

ISO Date format indicating the end date for the query

resolution

1w | 1d

Aggregation resolution. Valid values are "1w" or "1d"

tags[]

String

List of tags for filtering the query. To provide multiple values, use tags[]=valueA&tags[]=valueB

branches[]

String

List of branches for filtering the query. branches[]=valueA&branches[]=valueB

Last updated

Was this helpful?