cURL
curl --request POST \ --url https://apimgmt.cometchat.io/apps \ --header 'Content-Type: application/json' \ --header 'key: <key>' \ --header 'secret: <secret>' \ --data '{ "name": "<string>", "region": "us", "version": "3", "skipSampleData": true }'
{ "data": { "id": "<APP_ID>", "name": "<App Name>", "plan": "trial", "trialEndsAt": 1588887393, "state": "active", "owner": 1656, "region": "us", "createdAt": 1586295393, "appOwner": { "id": "1656", "name": "<OWNER_NAME>", "email": "youremail@domain.com" }, "appRegion": { "id": "us", "name": "USA", "description": "The USA region has serverslocated at Ohio." }, "apiKeys": { "<API_KEY1>": { "apiKey": "<API_KEY1>", "name": "Rest API Key", "scope": "fullAccess", "createdBy": "app_system" }, "<API_KEY2>": { "apiKey": "<API_KEY2>", "name": "Auth Key", "scope": "authOnly", "createdBy": "app_system" } } } }
Creates an app in the account. It returns all the app related information.
Authorization Key
Authorization Secret
name of the app.
Region of the app
us
eu
in
version of an app
skips sample data if it is set true
Created App
Show child attributes
Was this page helpful?