Connect to our platform
APIaction: API.connect
Description: Connect to the platform, via a login or registration.
Notes: See the details for a login via external apps.
APIactionModes: connectExternalClient
Description: Connect (register or login) an external client on our platform. Note that some functions, like the subscription or becoming member of a team, needs to be done via our UI itself.
Notes: We use oauth 2.0 and OpenID, with some additional info. The additional info that we require is needed to ensure our user accounts operate well.
Data in this request:
required format: "JSON"
required variables: {
"APIaction": "API.connect",
"APIactionModes": [
"connectExternalClient"
],
"scope": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 30,
"default": null,
"type": "string",
"description": "",
"accepted items": "oauth, OAuth, openid, openID, OpenID"
},
"response_type": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 26,
"default": null,
"type": "string",
"description": ""
},
"client_id": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 20,
"max_length": 40,
"default": null,
"type": "string",
"description": "The client ID of the external application."
},
"redirect_uri": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 2500,
"default": null,
"type": "string",
"description": ""
},
"state": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 200,
"default": null,
"type": "string",
"description": ""
},
"code_challenge": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 10,
"max_length": 125,
"default": null,
"type": "string",
"description": "API info. We always aim to support the latest methods and drop support for older versions as soon as possible!"
},
"code_challenge_method": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 1,
"max_length": 10,
"default": null,
"type": "string",
"description": "API info",
"accepted items": "S256"
},
"user_name": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 60,
"default": null,
"type": "string",
"description": ""
},
"user_email": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 100,
"default": null,
"type": "string",
"description": ""
}
}optional variables: {
"preferred_language": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 2,
"max_length": 3,
"default": null,
"type": "string",
"description": "",
"accepted items": "de, en, es, fr, nl, pt"
},
"user_tel1_country": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 5,
"default": 0,
"type": "string",
"description": ""
},
"user_tel1_number": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 20,
"default": null,
"type": "string",
"description": ""
},
"register_contact_me_for_demo": {
"minimum": 0,
"maximum": 1,
"NULL allowed": true,
"min_length": 0,
"max_length": 2,
"default": null,
"type": "integer",
"description": ""
},
"register_agree_with_news": {
"minimum": 0,
"maximum": 1,
"NULL allowed": true,
"min_length": 0,
"max_length": 2,
"default": null,
"type": "integer",
"description": ""
},
"register_agree_with_analytics": {
"minimum": 0,
"maximum": 1,
"NULL allowed": true,
"min_length": 0,
"max_length": 2,
"default": null,
"type": "integer",
"description": ""
},
"register_agreed_end_user_agreement": {
"minimum": 0,
"maximum": 1,
"NULL allowed": true,
"min_length": 0,
"max_length": 2,
"default": null,
"type": "integer",
"description": ""
}
}Subscription required for this mode:
"none"
Example output of this request:
null
APIactionModes: APItokenExchange
Description: Get an API token after having successfully created an API connection
Notes: we use oauth 2.0. Ensure that this request is done fast, as the exchange information has a very short lifetime!
Data in this request:
required format: "JSON"
required variables: {
"APIaction": "API.connect",
"APIactionModes": [
"APItokenExchange"
],
"client_id": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 20,
"max_length": 40,
"default": null,
"type": "string",
"description": "The client ID of the external application."
},
"grant_type": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 250,
"default": null,
"type": "string",
"description": "is the value authorization_code for receiving an api token",
"accepted items": "authorization_code, refresh_token"
},
"code": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 10,
"max_length": 65,
"default": null,
"type": "string",
"description": "API info"
},
"code_verifier": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 10,
"max_length": 250,
"default": null,
"type": "string",
"description": "API info"
}
}optional variables: []
Subscription required for this mode:
"none"
Example output of this request:
null
APIactionModes: APItokenRefresh
Description: Refresh the API token
Notes: The refresh_token is valid for 90 days, and will change upon each refresh
Data in this request:
required format: "JSON"
required variables: {
"APIaction": "API.connect",
"APIactionModes": [
"APItokenRefresh"
],
"client_id": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 20,
"max_length": 40,
"default": null,
"type": "string",
"description": "The client ID of the external application."
},
"grant_type": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 250,
"default": null,
"type": "string",
"description": "is the value authorization_code for receiving an api token",
"accepted items": "authorization_code, refresh_token"
},
"refresh_token": {
"minimum": null,
"maximum": null,
"NULL allowed": false,
"min_length": 0,
"max_length": 200,
"default": null,
"type": "string",
"description": ""
}
}optional variables: []
Subscription required for this mode:
"none"
Example output of this request:
null
APIactionModes: connectBuilding
Description: /
Notes: /
Data in this request:
required format: "JSON"
required variables: {
"APIaction": "API.connect",
"APIactionModes": [
"connectBuilding"
],
"builduser_connect_ref": {
"minimum": null,
"maximum": null,
"NULL allowed": true,
"min_length": 0,
"max_length": 60,
"default": null,
"type": "string",
"description": "The reference for connecting one single user to this building. Can be used only once."
}
}optional variables: []
Subscription required for this mode:
"none"
Example output of this request:
null