Updated on 2024-07-05 GMT+08:00

Obtaining a Project ID

Obtaining a Project ID by Calling an API

You can obtain the project ID by calling the APIs used to query the project list.

The API used to obtain a project ID is GET https://{Endpoint}/v4/projects/, where {Endpoint} indicates the Req endpoint. You can obtain the Req endpoint from Regions and Endpoints. For details about API authentication, see Authentication.

In the following example, project_id indicates a project ID.

{
  "projects" : [ {
    "project_num_id" : 3183801,
    "project_id" : "41bd3eab86544863b8fc92ffcd35e3c8",
    "project_name" : "demo_project",
    "description" : "demo",
    "created_time" : 1576114296000,
    "updated_time" : 1576114296000,
    "project_type" : "xboard",
    "creator" : {
      "user_num_id" : 4097,
      "user_id" : "c4bd39f0573a436589714bedbcca8536",
      "user_name" : "modile_user",
      "domain_id" : "2489d8cbba804db8bcd35384685ff3ac",
      "domain_name" : "modile_user",
      "nick_name" : "Tom.M.Riddle"
    }
  } ],
  "total" : 10
}