Endpoints
This is the documentation of the public API of Capgo cloud
To access, add in the headers your API key as authorization
.
Organizations
This endpoint allows you to manage organizations and their members.
GET
https://api.capgo.app/organization
Retrieve organization information. If orgId
is provided in the parameters, returns a single organization. Otherwise, returns all accessible organizations.
Returns:
POST
https://api.capgo.app/organization
Update an existing organization. Requires admin role.
Requires a request body of type OrganizationUpdate
.
On success, returns the following:
PUT
https://api.capgo.app/organization
Create a new organization.
Requires a request body of type OrganizationCreate
.
On success, returns the following:
API Keys
This endpoint allows you to manage API keys for accessing the Capgo API.
GET
https://api.capgo.app/apikey
Retrieve API keys for your account. Returns all accessible API keys.
Returns:
POST
https://api.capgo.app/apikey
Create a new API key for a specific organization.
Query Parameters:
Returns:
DELETE
https://api.capgo.app/apikey/:id
Delete an existing API key.
Parameters:
id
: The API key to delete
On success, returns:
On failure, returns:
Members (/organization/members)
GET
Retrieve organization members.
Requires a request body (query parameters) of type { orgId: string }
.
On success, returns the following:
DELETE
https://api.capgo.app/organization/members
Delete an organization member.
Requires a request body (query parameters) of type MemberDelete
.
On success, returns the following:
On failure, returns the following:
Statistics
This endpoint allows you to retrieve various statistics about your apps and organizations.
GET /statistics/app/:app_id
Retrieve statistics for a specific app.
Query Parameters:
Returns:
If graph
parameter is provided, returns an SVG image visualization of the requested metric.
GET /statistics/user
Retrieve aggregated statistics across all organizations the user has access to.
Query Parameters:
Returns:
If graph
is not provided:
If graph
parameter is provided, returns an SVG image visualization of the requested metric.
GET /statistics/org/:org_id
Retrieve statistics for a specific organization.
Query Parameters:
Returns:
If graph
is not provided:
If graph
parameter is provided, returns an SVG image visualization of the requested metric.
Channels
This endpoint allows you to check and modify all available Channels of your app
POST
https://api.capgo.app/channel
Send this to create or update channel
receive this:
GET
https://api.capgo.app/channel
Send app_id
as URL parameter and receive array of 50 first channels.
You can get the next one by sending page=1
and optionally channel
name as URL parameter to receive one:
DELETE
https://api.capgo.app/channel
Send this as query parameter
receive this:
Devices
This endpoint allows you to check and modify all devices link to your app
POST
https://api.capgo.app/device
Send this
receive this:
GET
https://api.capgo.app/device
Send app_id
as URL parameter and receive array of 50 first devices.
You can get the next one by sending page=1
and optionally device_id
name as URL parameter to receive one:
DELETE
This endpoint is for unlink channel and version override. You can’t delete a device from Capgo
https://api.capgo.app/device
Send this as query parameter
receive this:
Bundles
This endpoint allows you to check and delete all bundles link to your app.
GET
https://api.capgo.app/bundle
Send app_id
as URL parameter and receive array of 50 first bundles.
You can get the next one by sending page=1
DELETE
Delete one bundle in the Cloud
https://api.capgo.app/bundle
Send this as query parameter
receive this:
Alternatively you can send
To delete all bundle.