Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

App Manifest

If you do not want to use Myne’s app to register your manifest, you can submit your applications’ manifests programmatically, which is useful in a CI/CD environment for example.

Endpoint

POST https://core.myne.systems/app-manifests

Schema

The body of the request MUST be of Content-Type: application/json and follow this schema:

{
  "id": "",
  "name": "",
  "version": "",
  "last_version_published": "",
  "url": "",
  "company": "",
  "company_url": "",
  "logo": "",
  "contract": {},
  "data_sharing_schemes": {}
}
PropertyDefault ValueDescription
id""Id of the App. Used when updating the manifest
nameThe name of your application
versionVersion of your app’s manifest
urlAddress of the app’s webpage
companyName of your company
company_urlAddress of your company’s webpage
logoA base64 data url string of your app’s logo
contractList of actions your application can perform. See below
data_sharing_schemes{}List of Data Sharing Schemes that users can invoke. See below

Actions

Action names (keys in the object actionsof the manifest) SHOULD be lowerCamelCased.

{
  "createConversation": {
    "name": "createConversation",
    "description": "Create a conversation",
    "query_template": "WRITE > Conversation IS:subject '%subject%' BEEN:Participate ME HAS:role '%role%'",
    "query_params": [
      "subject",
      "role"
    ]
  }
}
PropertyDefault ValueDescription
nameName of the action
descriptionA short description of what the action does
query_templateA templated SGQL query. See Templated Queries
query_paramsA list of parameters used in the query_template
hookundefinedAn url to call when the action is run. See below

Hooks

Hooks are http calls triggered when the action is run.

{
  "url": "",
  "method": "",
  "authorization_header": ""
}
PropertyDefault ValueDescription
urlThe url to call
methodGET, POST, DELETE, PUT…
authorization_headerA string that will be injected in the Authorization http header of the request

Data Sharing Schemes

Data Sharing Scheme names (keys in the object data_sharing_schemesof the manifest) SHOULD be lowerCamelCased.

{
  "myList": {
    "name": "myList",
    "description": "",
    "action": {},
    "scheme_parameter_name": ""
  }
}
PropertyDefault ValueDescription
nameName of the scheme
descriptionA short description of what the scheme
actionOne Action
scheme_parameter_nameName of the parameter that will be fixed (usually an id so that exactly one entity is shared)