Select the account to use for actions

Choose which of your accounts an action should be performed on. This is particularly useful if you have multiple companies or services linked to your personal number. The endpoint returns an account ID required for subsequent API calls.

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
GET https://cloud.hostup.se/api/account-selection
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/account-selection" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "pnr": "string",
    "accounts": [
      {
        "id": "string",
        "firstname": "string",
        "lastname": "string",
        "email": "string",
        "_ticVerified": true,
        "status": "string",
        "loginAllowed": true,
        "loginMatchType": "string"
      }
    ]
  }
}