Download OpenAPI specification:Download
Each response of the API is structured according to the same schema. The status property displays the returned
HTTP status, while the links property provides useful
URI templates (RFC 6570) for navigation.
The answer itself is provided via the content property. If an error occurs, the problem property is set and
provides useful information about the error.
A problem has four different properties. The type property specifies the type of the problem. In addition, the
title property provides a human-readable title and the optional message property contains the error message
itself. If the problem is of the type constraint-violations, the optional violations property provides more
details about the problem. Such a violation object supplies the two fields field and message.
The API uses only the following status codes:
The 200 (OK) status code indicates that the request has succeeded. The payload sent in a 200 response depends
on the request method.
The 400 (Bad Request) status code indicates that the server cannot or will not process the request due to
something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing,
or deceptive request routing).
The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid
authentication credentials for the target resource.
The 403 (Forbidden) status code indicates that the server understood the request but refuses to authorize it.
404 The 404 (Not Found) status code indicates that the origin server did not find a current representation for the
target resource or is not willing to disclose that one exists. A 404 status code does not indicate whether this lack
of representation is temporary or permanent.
The 500 (Internal Server Error) status code indicates that the server encountered an unexpected condition
that prevented it from fulfilling the request.
To use the API, a security token must always be sent in the X-AUTH-TOKEN header. This token can be obtained via the
authentication API.
All public endpoints start with the prefix /api. These endpoints are documented and stable.
All other endpoints are internal and breaking changes may be introduced at any time.
| password required | string |
| userDirectoryId required | integer <int64> ID of the user directory. You can find the ID under: Sponsoring Portal / Administration / User Directories. |
| username required | string |
{- "password": "string",
- "userDirectoryId": 0,
- "username": "string"
}{- "content": {
- "token": "string",
- "userDirectoryId": 0,
- "userDirectoryName": "string",
- "username": "string"
}, - "links": { },
- "reason": "OK",
- "status": 200
}{- "content": [
- {
- "customFields": [
- {
- "id": "string",
- "name": {
- "de": "string",
- "en": "string",
- "fr": "string",
- "it": "string"
}, - "options": [
- {
- "id": "string",
- "name": {
- "de": "string",
- "en": "string",
- "fr": "string",
- "it": "string"
}
}
], - "regex": "string",
- "type": "TEXT"
}
], - "customerKey": "string",
- "id": 0,
- "name": "string"
}
], - "links": { },
- "reason": "OK",
- "status": 200
}| size | integer <int32> Number of accounts to fetch. The default value is 25 |
| customerKey required | string |
| type required | string Enum: "PEAP" "IPSK" "MAB" "BYOD_USER" "BYOD_DEVICE" "PEAP_DEVICE" |
| seekIdentifier.username | string Username used for pagination. If you for example fetch 10 accounts with a request, you can send the same request again with the |
| seekIdentifier.naGroupId | integer <int64> Network access group id used for pagination. Required if seekIdentifier.username is set. |
| seekIdentifier.id | integer <int64> Network access account id used for pagination. Required if seekIdentifier.username is set. |
| seekDirection | string Enum: "FORWARD" "BACKWARD" |
| naGroupIds | Array of integers <int64> unique |
| tagIds | Array of integers <int64> unique |
| tagOperator | string Enum: "OR" "AND" Specifies if the account must have all tag ids ( |
| query | string Search query applied to the name and comment field. Multiple values can be specified separated by spaces. |
| validityType | string Enum: "CUSTOM" "EXPIRED" "UNLIMITED" "VALID_NOW" "VALID_IN_FUTURE" |
| customValidity.validFrom | string <date-time> Required if validityType is |
| customValidity.validTo | string <date-time> Required if validityType is |
| stateFilterType | string Enum: "NORMAL" "DELETED" "ALL" Whether only active, deleted or all accounts should be included. |
| onlineStatusFilterType | string Enum: "ALL" "UNKNOWN" "ONLINE" "OFFLINE" Whether network access accounts with certain online status should be included. |
| lastSeenFilterType | string Enum: "NEVER_SEEN" "NOT_SEEN_SINCE_DURATION" "NOT_SEEN_SINCE_DATE" "SEEN_SINCE_DURATION" "SEEN_SINCE_DATE" Allows to filter accounts/devices by the lastSeenAt field. |
| lastSeenDate | string <date-time> This field is required if
|
| lastSeenDuration | string <ISO 8601 duration> Example: lastSeenDuration=PT10H This field is required if
|
{- "content": {
- "entities": [
- {
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "customFieldValues": [
- {
- "customFieldId": "string",
- "customFieldType": "TEXT",
- "value": "Custom field example value"
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "firstSeenAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "lastSeenAt": "2019-08-24T14:15:22Z",
- "naGroupId": 0,
- "onlineStatus": "UNKNOWN",
- "password": "string",
- "state": "NORMAL",
- "tagIds": [
- 0
], - "type": "PEAP",
- "username": "string",
- "validity": {
- "validFor": "PT10H",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}
], - "hasNext": "YES",
- "hasPrevious": "YES"
}, - "links": { },
- "reason": "OK",
- "status": 200
}| customerKey required | string |
| comment | string |
Array of objects (CustomFieldValueDTO) | |
| naGroupId required | integer <int64> |
| password | string Required to create a PEAP user or iPSK device. Optional when updating. |
| tagIds | Array of integers <int64> unique |
| type required | string Enum: "PEAP" "IPSK" "MAB" |
| username required | string |
object (AccountValidityDTO) Validity period of the account. |
{- "comment": "string",
- "customFieldValues": [
- {
- "customFieldId": "string",
- "customFieldType": "TEXT",
- "value": "Custom field example value"
}
], - "naGroupId": 0,
- "password": "string",
- "tagIds": [
- 0
], - "type": "PEAP",
- "username": "string",
- "validity": {
- "validFor": "PT10H",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}{- "content": {
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "customFieldValues": [
- {
- "customFieldId": "string",
- "customFieldType": "TEXT",
- "value": "Custom field example value"
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "firstSeenAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "lastSeenAt": "2019-08-24T14:15:22Z",
- "naGroupId": 0,
- "onlineStatus": "UNKNOWN",
- "password": "string",
- "state": "NORMAL",
- "tagIds": [
- 0
], - "type": "PEAP",
- "username": "string",
- "validity": {
- "validFor": "PT10H",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}, - "links": { },
- "reason": "OK",
- "status": 200
}An account that is marked as deleted can no longer login. The account is deleted after a retention period that can be configured in the settings.
| customerKey required | string |
| id required | integer <int64> |
{- "content": {
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "customFieldValues": [
- {
- "customFieldId": "string",
- "customFieldType": "TEXT",
- "value": "Custom field example value"
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "firstSeenAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "lastSeenAt": "2019-08-24T14:15:22Z",
- "naGroupId": 0,
- "onlineStatus": "UNKNOWN",
- "password": "string",
- "state": "NORMAL",
- "tagIds": [
- 0
], - "type": "PEAP",
- "username": "string",
- "validity": {
- "validFor": "PT10H",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}, - "links": { },
- "reason": "OK",
- "status": 200
}| customerKey required | string |
| id required | integer <int64> |
{- "content": {
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "customFieldValues": [
- {
- "customFieldId": "string",
- "customFieldType": "TEXT",
- "value": "Custom field example value"
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "firstSeenAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "lastSeenAt": "2019-08-24T14:15:22Z",
- "naGroupId": 0,
- "onlineStatus": "UNKNOWN",
- "password": "string",
- "state": "NORMAL",
- "tagIds": [
- 0
], - "type": "PEAP",
- "username": "string",
- "validity": {
- "validFor": "PT10H",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}, - "links": { },
- "reason": "OK",
- "status": 200
}| customerKey required | string |
| comment | string |
Array of objects (CustomFieldValueDTO) | |
| id required | integer <int64> |
| naGroupId required | integer <int64> |
| password | string Required to create a PEAP user or iPSK device. Optional when updating. |
| tagIds | Array of integers <int64> unique |
| type required | string Enum: "PEAP" "IPSK" "MAB" |
| username required | string |
object (AccountValidityDTO) Validity period of the account. |
{- "comment": "string",
- "customFieldValues": [
- {
- "customFieldId": "string",
- "customFieldType": "TEXT",
- "value": "Custom field example value"
}
], - "id": 0,
- "naGroupId": 0,
- "password": "string",
- "tagIds": [
- 0
], - "type": "PEAP",
- "username": "string",
- "validity": {
- "validFor": "PT10H",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}{- "content": {
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "customFieldValues": [
- {
- "customFieldId": "string",
- "customFieldType": "TEXT",
- "value": "Custom field example value"
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "firstSeenAt": "2019-08-24T14:15:22Z",
- "id": 0,
- "lastSeenAt": "2019-08-24T14:15:22Z",
- "naGroupId": 0,
- "onlineStatus": "UNKNOWN",
- "password": "string",
- "state": "NORMAL",
- "tagIds": [
- 0
], - "type": "PEAP",
- "username": "string",
- "validity": {
- "validFor": "PT10H",
- "validFrom": "2019-08-24T14:15:22Z",
- "validTo": "2019-08-24T14:15:22Z"
}
}, - "links": { },
- "reason": "OK",
- "status": 200
}| customerKey required | string |
| type required | string Enum: "PEAP" "IPSK" "MAB" "BYOD" |
{- "content": [
- {
- "defaultValidFor": "PT10H",
- "hint": "SSID: wifi",
- "id": 0,
- "inputTemplateId": 0,
- "name": "My Group",
- "pairingVlan": "530",
- "realm": "onway.ch",
- "tagIds": [
- 0
], - "vlan": "540"
}
], - "links": { },
- "reason": "OK",
- "status": 200
}