How to know an app is from Guest Space or not?

How to know an app is from Guest Space or not?

When I list apps with API https://{subdomain}.kintone.com/k/v1/apps.json. It returns result including the apps from guest space.

Then I pick one app from the list, I want to list the app's fields. How do I check if the app is from guest space or not to? I need that info to decide which API endpoint I should use k/v1/app/form/fields.json or k/guest/{SpaceID}/v1/app/form/fields.json

Hello @ThaiHoc-Nguyen ,

To identify whether a space is a guest space or not, you can use the following API: /k/v1/space.json.
In the response, check the "isGuest" parameter. If it's false, then it's not a guest space.

However, if you try to use the above API on a guest space, you'll receive the following error message:

{ "code": "GAIA_IL25", "id": "6ObrFaj5lic0O00Gg4nV", "message": "You need to include "/guest/(Guest Space ID)" to .../k/guest/(app id)/v1/space/members.json" }

So, you can also identify a guest space based on whether you receive this error message or not.