Projects
Create Project
Section titled Create ProjectCreate a new project by specifying its name
.
Method
Section titled MethodPOST
/api/v1/projects
Parameters
Section titled ParametersName | Type | Description |
---|---|---|
name | string | The name of the project you’re creating (i.e. MyApp, Production, Staging) (required) |
Request Headers
Section titled Request HeadersAuthorization: {YOUR_ORGANIZATION_API_KEY}
: The key can be found in ‘Preferences’ > ‘Account’ > ‘Organization API Key’.
Status Codes
Section titled Status Codes200
: Response sent as JSON in body
Example Request
Section titled Example Requestcurl -X POST \
https://openreplay.example.com/api/v1/projects/MyFirstProject \
-H 'content-type: application/json' \
-H 'Authorization: {YOUR_ORGANIZATION_API_KEY}'
--data-raw '{
"name": "MyFirstProject"
}'
Example Response
Section titled Example Response{
"data": {
"projectKey": "QsLA07Oa5sqTfwnNaFwS",
"name": "MyFirstProject",
"gdpr": {
"maskEmails": true,
"sampleRate": 50,
"maskNumbers": true,
"defaultInputMode": "plain"
}
}
}
Get Project
Section titled Get ProjectReturns the specified project’s details.
Method
Section titled MethodGET
/api/v1/projects/:projectKey
Parameters
Section titled ParametersName | Type | Description |
---|---|---|
projectKey | string | The ID of the project you’re tracking (required) |
Request Headers
Section titled Request HeadersAuthorization: {YOUR_ORGANIZATION_API_KEY}
: The key can be found in ‘Preferences’ > ‘Account’ > ‘Organization API Key’.
Status Codes
Section titled Status Codes200
: Response sent as JSON in body
Example Request
Section titled Example Requestcurl -X GET \
https://openreplay.example.com/api/v1/projects/7ePSXFuQVidq9pqS6Xyn \
-H 'content-type: application/json' \
-H 'Authorization: {YOUR_ORGANIZATION_API_KEY}'
Example Response
Section titled Example Response{
"data": {
"projectKey": "7ePSXFuQVidq9pqS6Xyn",
"name": "MyFirstProject"
}
}
Get Projects
Section titled Get ProjectsReturns the list of existing projects.
Method
Section titled MethodGET
/api/v1/projects
Request Headers
Section titled Request HeadersAuthorization: {YOUR_ORGANIZATION_API_KEY}
: The key can be found in ‘Preferences’ > ‘Account’ > ‘Organization API Key’.
Status Codes
Section titled Status Codes200
: Response sent as JSON in body
Example Request
Section titled Example Requestcurl -X GET \
https://openreplay.example.com/api/v1/projects \
-H 'content-type: application/json' \
-H 'Authorization: {YOUR_ORGANIZATION_API_KEY}'
Example Response
Section titled Example Response{
"data": {
"projectKey": "7ePSXFuQVidq9pqS6Xyn",
"name": "MyFirstProject"
},
{
"projectKey": "9cACFRuQVidq0sqS7Bny",
"name": "MySecondProject"
}
}