Skip to main content

Create Project

Endpoint:

https://api.cronosengine.com/api/projects

Method : POST

Allows Merchants to create new project from the Cronos engine

Request Parameters

ParameterDescription
nameThe name or identifier of the project can be filled with letters and numbers.
domainA unique website address of the project by the merchant.
ipThe IP address that will be able to access the engine.

Headers

KeyValue
On-KeyProject Key
On-TokenProject Token
On-SignatureGenerated using : hash_hmac('sha512', key + json_encode(body), token)
Acceptapplication/json

Response Parameters

ParameterDescription
responseCodeThe HTTP response code indicating the status of the request. you can see the detailed information in the Error Codes Section.
responseMessageA descriptive message indicating the status of the request.
responseDataAn object containing the data related to the transaction response.
responseData.idCreated project ID
responseData.nameCreated project name
responseData.domainCreated project domain
responseData.ipCreated project whitelisted ip
responseData.statusThe status of the created project.

Example

Request

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"
}
}