Skip to content
Martin DONADIEU edited this page Apr 23, 2022 · 10 revisions

Intro

This is the documentation of the backend API of Capgo cloud

Versions

This endpoint allows you to check and modify all available version of your app

POST https://capgo.app/api/version

Send this

interface ChannelSet {
  appid: string
  channel: string
  version?: string
  public?: boolean
}

receive this:

{ status: 'ok' }

GET https://capgo.app/api/version

Send appid as URL parameter and receive array of channel:

{
    id: number;
    created_at: string;
    name: string;
    app_id: string;
    version: number;
    created_by: string;
    updated_at: string;
    public: boolean;
    disableAutoUpdateUnderNative: boolean;
    disableAutoUpdateToMajor: boolean;
}[]

and optionally channel name as URL parameter to receive one:

{
    id: number;
    created_at: string;
    name: string;
    app_id: string;
    version: number;
    created_by: string;
    updated_at: string;
    public: boolean;
    disableAutoUpdateUnderNative: boolean;
    disableAutoUpdateToMajor: boolean;
}

Devices

This endpoint allows you to check and modify all devices link to your app

POST https://capgo.app/api/device

Send this

interface DeviceLink {
  app_id: string
  device_id: string
  version_id?: string
  channel_id?: string
}

receive this:

{ status: 'ok' }

GET https://capgo.app/api/device

Send appid as URL parameter and receive array of channel:

{
    created_at?: string | undefined;
    updated_at?: string | undefined;
    device_id: string;
    version: number;
    app_id: string;
    platform?: "ios" | "android" | undefined;
    plugin_version: string;
    os_version?: string | undefined;
}[]

and optionally channel name as URL parameter to receive one:

{
    created_at?: string | undefined;
    updated_at?: string | undefined;
    device_id: string;
    version: number;
    app_id: string;
    platform?: "ios" | "android" | undefined;
    plugin_version: string;
    os_version?: string | undefined;
}

Clone this wiki locally