# Getting profiles

# Getting all active profiles

To get all active profiles of the current user, use the following endpoint:

GET /api/profile

On success the response will be the default API response with the data being a data array of profiles. The profile entities will be in the following format:

[
    {
        "serial": "string",
        "name": "string",
        "revokeReason": null,
        "revokeTime": null,
        "creationTime": "2023-12-15T15:30:52.768Z",
        "expirationTime": "2023-12-15T15:30:52.768Z",
        "authable": true,
        "lastLogin": "2023-12-15T15:30:52.768Z",
        "deviceType": "string",
        "owner": "string"
    }
]

# Getting a specific profile

To get a specific profile of the current user, use the following endpoint:

GET /api/profile/{serial}

With {serial} being the serial of the profile to get.

On success the response will be the default API response with the data being a profile entity in the following format:

{
    "serial": "string",
    "name": "string",
    "revokeReason": null,
    "revokeTime": null,
    "creationTime": "2023-12-15T15:30:52.768Z",
    "expirationTime": "2023-12-15T15:30:52.768Z",
    "authable": true,
    "lastLogin": "2023-12-15T15:30:52.768Z",
    "deviceType": "string",
    "owner": "string"
}