Create Project
Endpoint:
https://api.cronosengine.com/api/projects
Method : POST
Allows Merchants to create new project from the Cronos engine
Request Parameters
| Parameter | Description |
|---|---|
| name | The name or identifier of the project can be filled with letters and numbers. |
| domain | A unique website address of the project by the merchant. |
| ip | The IP address that will be able to access the engine. |
Headers
| Key | Value |
|---|---|
| On-Key | Project Key |
| On-Token | Project Token |
| On-Signature | Generated using : hash_hmac('sha512', key + json_encode(body), token) |
| Accept | application/json |
Response Parameters
| Parameter | Description |
|---|---|
| responseCode | The HTTP response code indicating the status of the request. you can see the detailed information in the Error Codes Section. |
| responseMessage | A descriptive message indicating the status of the request. |
| responseData | An object containing the data related to the transaction response. |
| responseData.id | Created project ID |
| responseData.name | Created project name |
| responseData.domain | Created project domain |
| responseData.ip | Created project whitelisted ip |
| responseData.status | The status of the created project. |
Example
Request
- cURL
curl --location 'https://api.cronosengine.com/api/projects' \
--data '{
"name": "Project A",
"domain": "https://yourdomain.com",
"ip": [
"0.0.0.0/0"
]
}'
Response
{
"responseCode": 200,
"responseMessage": "success",
"responseData": {
"id": 1,
"name": "Project A",
"domain": "https://yourdomain.com",
"ip": [
"0.0.0.0/0"
],
"status": "Review"
}
}