API
This is the documentation of the backend API of Capgo cloud
You can access to the API you need to add in the headers your API key as
authorization
you get it thereThis endpoint allows you to check and modify all available Channels of your app
https://api.capgo.app/channel
Send this to create or update channel
interface ChannelSet {
app_id: string
channel: string
version?: string
public?: boolean
disableAutoUpdateUnderNative?: boolean
disableAutoUpdateToMajor?: boolean
ios?: boolean
android?: boolean
allow_device_self_set?: boolean
allow_emulator?: boolean
allow_dev?: boolean
}
receive this:
{ "status": "ok" }
https://api.capgo.app/channel
Send
app_id
as URL parameter and receive array of 50 first channel.
You can get next one by sending page=1
interface Channel {
id: number;
created_at: string;
name: string;
app_id: string;
version: {
id: number,
name: string
};
created_by: string;
updated_at: string;
public: boolean; // default or not
disableAutoUpdateUnderNative: boolean;
disableAutoUpdateToMajor: boolean;
allow_emulator: boolean;
allow_dev: boolean;
}[]
and optionally
channel
name as URL parameter to receive one:interface Channel {
id: number;
created_at: string;
name: string;
app_id: string;
version: {
id: number,
name: string
};
created_by: string;
updated_at: string;
public: boolean; // default or not
disableAutoUpdateUnderNative: boolean;
disableAutoUpdateToMajor: boolean;
allow_emulator: boolean;
allow_dev: boolean;
}
https://api.capgo.app/channel
Send this
interface Channel {
channel: string
}
receive this:
{ "status": "ok" }
This endpoint allows you to check and modify all devices link to your app
https://api.capgo.app/device
Send this
interface DeviceLink {
app_id: string
device_id: string
version_id?: string // version name ( will be migrate to better name)
channel?: string // channel name
}
receive this:
{ "status": "ok" }
https://api.capgo.app/device
Send
app_id
as URL parameter and receive array of 50 first devices.
You can get next one by sending page=1
interface Device{
created_at?: string | undefined;
updated_at?: string | undefined;
device_id: string;
custom_id: string;
version: {
id: number,
name: string
};
app_id: string;
platform?: "ios" | "android" | undefined;
plugin_version: string;
os_version?: string | undefined;
version_build: string;
is_prod: boolean;
is_emulator: boolean;
}[]
and optionally
device_id
name as URL parameter to receive one:interface Device {
created_at?: string | undefined;
updated_at?: string | undefined;
device_id: string;
version: {
id: number,
name: string
};
app_id: string;
platform?: "ios" | "android" | undefined;
plugin_version: string;
os_version?: string | undefined;
}
This endpoint is for unlink channel and version override. You can't delete a device from capgo
https://api.capgo.app/device
Send this
interface Device {
device_id: string
}
receive this:
{ "status": "ok" }
This endpoint allows you to check and delete all bundles link to your app.
legacy name version the URL will be remove in january 2023
https://api.capgo.app/bundle
Send
app_id
as URL parameter and receive array of 50 first bunles.
You can get next one by sending page=1
interface Bundle {
id: number;
created_at: string;
name: string;
app_id: string;
version: number;
created_by: string;
updated_at: string;
public: boolean;
disableAutoUpdateUnderNative: boolean;
disableAutoUpdateToMajor: boolean;
}[]
Delete one bundle in the Cloud
https://api.capgo.app/bundle
Send this
interface Bundle {
app_id: string
version: string
}
receive this:
{ "status": "ok" }
Alternatively you can send
interface Bundle {
app_id: string
}
To delete all bundle.
Last modified 17d ago