Mini Apps
Small apps that live in your workspace.
Making an app is done in the dashboard: describing it, answering Xuda's questions, the plan and the build have no public method today. What you can do from code is look after the apps you already have: rename, favorite, pin, archive, delete and share them.
Every call is a POST to /cpi/<method> with a JSON body that carries your API key. An app is named by its prog_id, which is the last part of the app's address in the dashboard when you open it. Each method also takes an optional workspace_id, to act in a workspace you own instead of your home workspace.
What each screen act does, as a call
Archiving takes an app off the Active list and out of the count your plan holds. Deleting is for good, so archive first when you may want it back.
Sharing an app
Who may use or edit an app is not a Mini Apps method. The share window calls create_share with access_type set to miniapp and the app's id as share_item_id. Give access_email for who receives it, and share_level as read for Can use or readwrite for Can edit. get_shares lists who an app is shared with, with the same access_type and share_item_id.
The person who receives a share sees a card with Accept and Decline. Those two call confirm_share and decline_share with the card's team_req_id. An app shared with you is not counted against your own plan.
Plans
No method sets the Mini Apps plan from outside the dashboard. See Plans and billing for what each plan holds.