The App Cloud APIs expose the Core API endpoints, but with the addition of adding per user authentication and authorization. For example, you may choose to build with App Cloud APIs when developing for a mobile platform.
Cognitive Systems App Cloud API
Download OpenAPI description
Languages
Servers
Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/
https://docs.cognitivesystems.com/api/v1/
Request
Session create for a user. Each session create updates a "valid_from" UTC timestamp column in the user model.
Any subseqeuent session creates for the same user will invalidate any previously issued tokens, effectively preventing account sharing or multiple devices being logged-in with the same account.
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sessions
- https://docs.cognitivesystems.com/api/v1/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sessions?multi=false' \
-H 'Content-Type: application/json' \
-d '{
"email": "string",
"password": "string",
"first_name": "string",
"last_name": "string"
}'Response
application/json
{ "refresh_token": "string", "token": "string", "user": { "id": 0, "username": "string", "email": "string", "first_name": "string", "last_name": "string", "created_at": "string", "updated_at": "string", "confirmed_at": "string", "sub": "string", "valid_from": 0 } }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sessions
- https://docs.cognitivesystems.com/api/v1/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sessions?multi=false' \
-H 'Content-Type: application/json' \
-d '{
"token": "string"
}'Response
application/json
{ "refresh_token": "NEW.AUTH.TOKEN", "token": "NEW.REFRESH.TOKEN", "user": { "id": 420, "email": "user@cognitivesystems.com", "first_name": "John", "last_name": "Smith", "created_at": "2020-01-04T22:05:38.793Z", "updated_at": "2020-01-04T22:06:02.059Z", "confirmed_at": "2020-01-04T22:06:02.056Z" } }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sessions/sso/apple
- https://docs.cognitivesystems.com/api/v1/sessions/sso/apple
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/sessions/sso/apple \
-H 'Content-Type: application/json' \
-d '{
"user": {
"name": {
"firstName": "John",
"lastName": "Smith"
},
"email": "user@cognitivesystems.com"
},
"access_token": "NEW.APPLE.AUTH.TOKEN"
}'Response
application/json
{ "refresh_token": "string", "token": "string", "user": { "id": 0, "username": "string", "email": "string", "first_name": "string", "last_name": "string", "created_at": "string", "updated_at": "string", "confirmed_at": "string", "sub": "string", "valid_from": 0 } }