NodiRef LogoNodiRef
Projects

/projects

This endpoint allows you to create a new project by providing the necessary details.

Request Body

{
    "name": "Default Project", // Required
    "base_url": "https://nodiref.com", // Required
    "cookie_lifetime": 365, // Max is 365
    "status_id": "", // Optional, UUID, Default: Active
    "automatically_approve_conversions": false, // Optional, Default: false
    "automatically_approve_rewards": false, // Optional, Default: false
    "enable_fraud_detection": true // Optional, Default: true
}

Response

The response for this request is an empty array with a 201 HTTP Code

POST/projects

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonOptional

Response Body

Successful response

curl -X POST "https://api.nodiref.com/projects" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Default Project",
    "base_url": "https://nodiref.com",
    "cookie_lifetime": 365,
    "status_id": "",
    "automatically_approve_conversions": false,
    "automatically_approve_rewards": false,
    "enable_fraud_detection": true
  }'
Empty