Users API
post
https://api.ravenapp.dev
/v1/apps/:app_id/users
Create User

Request. Example

1
POST /v1/apps/{{app_id}}/users HTTP/1.1
2
Host: https://api.ravenapp.dev
3
Authorization: AuthKey {{secret_key}}
4
Content-Type: application/json
5
6
{
7
"user_id" : "test",
8
"mobile" : "9876543210",
9
"email" : "[email protected]"
10
}
Copied!
get
https://api.ravenapp.dev
/v1/apps/:app_id/users/:user_id
Get User Profile

Request Example

1
GET /v1/apps/{{app_id}}/users/{{user_id}} HTTP/1.1
2
Host: https://api.ravenapp.dev
3
Authorization: AuthKey {{secret_key}}
Copied!

Device APIs for Push

post
https://api.ravenapp.dev
/v1/apps/:app_id/users/:user_id/devices
Add Device

Request Example

1
POST /v1/apps/{{app_id}}/users/{{user_id}}/devices/ HTTP/1.1
2
Host: https://api.ravenapp.dev
3
Authorization: AuthKey {{secret_key}}
4
Content-Type: application/json
5
6
{
7
"fcm_token" : "qweKu7bdTZumJpzxUqqpxe:APA91bE9FSScPK_kENPpBAj0URYDo4z0tE6aOrBtpgaA1I1OC7GBes1lR71EWRhavLGMzDMKPPLkUoqtvPHzCgq-8ObU4AOJjbPdpkyRWqc8mqrUV2EkvsziLZvFccwtyI7-lQQhSJDe"
8
"platform" : "android"
9
}
Copied!
put
https://api.ravenapp.dev
/v1/apps/:app_id/users/:user_id/devices/:device_id
Update Device

Request Example

1
POST /v1/apps/{{app_id}}/users/{{user_id}}/devices/{{device_id}} HTTP/1.1
2
Host: https://api.ravenapp.dev
3
Authorization: AuthKey {{secret_key}}
4
Content-Type: application/json
5
6
{
7
"fcm_token" : "qweKu7bdTZumJpzxUqqpxe:APA91bE9FSScPK_kENPpBAj0URYDo4z0tE6aOrBtpgaA1I1OC7GBes1lR71EWRhavLGMzDMKPPLkUoqtvPHzCgq-8ObU4AOJjbPdpkyRWqc8mqrUV2EkvsziLZvFccwtyI7-lQQhSJDe"
8
"platform" : "android"
9
}
Copied!
delete
https://api.ravenapp.dev/v1/apps/:app_id/users/:user_id/devices/:device_id
Delete Device