Applications API
All URIs are relative to http://localhost:1000
Method | HTTP request | Description |
---|---|---|
applicationsExternalRelated | GET /applications/external/related | /applications/external/related [GET] |
applicationsExternalSnapshot | GET /applications/external | /applications/external [GET] |
applicationsRegister - (Deprecated) | POST /applications/register | /applications/register [POST] |
applicationsSessionClose - (Deprecated) | POST /applications/session/close | /applications/session/close [POST] |
applicationsSessionOpen - (Deprecated) | POST /applications/session/open | /applications/session/open [POST] |
applicationsSessionSnapshot - (Deprecated) | GET /applications/sessions/{session} | /applications/sessions/{session} [GET] |
applicationsSnapshot | GET /applications | /applications [GET] |
applicationsSpecificApplicationSnapshot | GET /applications/{application} | /applications/{application} [GET] |
applicationsUsageEngagementInteraction - (Deprecated) | POST /applications/usage/engagement/interaction | /applications/usage/engagement/interaction [POST] Scoped to Apps |
applicationsUsageEngagementKeyboard - (Deprecated) | POST /applications/usage/engagement/keyboard | /applications/usage/engagement/keyboard [POST] Scoped to Apps |
applicationsUsageInstallation - (Deprecated) | POST /applications/usage/installation | /applications/usage/installation [POST] |
postApplicationsUsageUpdated - (Deprecated) | POST /applications/usage/updated | /applications/usage/updated [POST] |
applicationsExternalRelated
DetectedExternalApplications applicationsExternalRelated()
/applications/external/related [GET]
Retrieves a list of external applications installed on the user's machine that have potential integrations with Pieces, including those not yet installed by the user and those anticipated to be supported in the future.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
try {
val result : DetectedExternalApplications = apiInstance.applicationsExternalRelated()
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsExternalRelated")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsExternalRelated")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
applicationsExternalSnapshot
DetectedExternalApplications applicationsExternalSnapshot()
/applications/external [GET]
Provides a snapshot of all external applications detected on the user's machine, such as Microsoft Teams classic, Google Chat, Obsidian, etc.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
try {
val result : DetectedExternalApplications = apiInstance.applicationsExternalSnapshot()
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsExternalSnapshot")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsExternalSnapshot")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
applicationsRegister - (Deprecated)
Application applicationsRegister(application)
/applications/register [POST]
Registers a new application within the Pieces ecosystem.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
val application : Application = // Application | This will accept a application.
try {
val result : Application = apiInstance.applicationsRegister(application)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsRegister")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsRegister")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
application | Application | This will accept a application. | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
applicationsSessionClose - (Deprecated)
Session applicationsSessionClose(body)
/applications/session/close [POST]
Closes an active session, identified by a session UUID, marking the end of the user's current interaction with the Pieces application.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
val body : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | This will accept a required session uuid.
try {
val result : Session = apiInstance.applicationsSessionClose(body)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsSessionClose")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsSessionClose")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | java.util.UUID | This will accept a required session uuid. | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
applicationsSessionOpen - (Deprecated)
Session applicationsSessionOpen()
/applications/session/open [POST]
Initiates a new session, marking the start of a user's interaction with the Pieces application.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
try {
val result : Session = apiInstance.applicationsSessionOpen()
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsSessionOpen")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsSessionOpen")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
applicationsSessionSnapshot - (Deprecated)
Session applicationsSessionSnapshot(session)
/applications/sessions/{session} [GET]
Fetches detailed information about a specific session, identified by a session UUID, including application usage and engagement data.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
val session : kotlin.String = session_example // kotlin.String | This is a uuid that points to a session.
try {
val result : Session = apiInstance.applicationsSessionSnapshot(session)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsSessionSnapshot")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsSessionSnapshot")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
session | kotlin.String | This is a uuid that points to a session. |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
applicationsSnapshot
Applications applicationsSnapshot()
/applications [GET]
Retrieves a comprehensive overview of all applications tracked by the Pieces system, including status, version, and engagement metrics.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
try {
val result : Applications = apiInstance.applicationsSnapshot()
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsSnapshot")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsSnapshot")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
applicationsSpecificApplicationSnapshot
Application applicationsSpecificApplicationSnapshot(application)
/applications/{application} [GET]
Obtains a snapshot with information about a specific application, identified by its UUID.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
val application : kotlin.String = application_example // kotlin.String | This is a uuid that represents an application
try {
val result : Application = apiInstance.applicationsSpecificApplicationSnapshot(application)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsSpecificApplicationSnapshot")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsSpecificApplicationSnapshot")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
application | kotlin.String | This is a uuid that represents an application |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
applicationsUsageEngagementInteraction - (Deprecated)
TrackedInteractionEvent applicationsUsageEngagementInteraction(seededTrackedInteractionEvent)
/applications/usage/engagement/interaction [POST] Scoped to Apps
Records user interaction events within applications, such as clicks or taps, to analyze engagement patterns and user behavior.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
val seededTrackedInteractionEvent : SeededTrackedInteractionEvent = // SeededTrackedInteractionEvent |
try {
val result : TrackedInteractionEvent = apiInstance.applicationsUsageEngagementInteraction(seededTrackedInteractionEvent)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsUsageEngagementInteraction")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsUsageEngagementInteraction")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
seededTrackedInteractionEvent | SeededTrackedInteractionEvent | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
applicationsUsageEngagementKeyboard - (Deprecated)
TrackedKeyboardEvent applicationsUsageEngagementKeyboard(seededTrackedKeyboardEvent)
/applications/usage/engagement/keyboard [POST] Scoped to Apps
Captures keyboard interaction events, including shortcuts, within applications to monitor user engagement and productivity enhancements.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
val seededTrackedKeyboardEvent : SeededTrackedKeyboardEvent = // SeededTrackedKeyboardEvent |
try {
val result : TrackedKeyboardEvent = apiInstance.applicationsUsageEngagementKeyboard(seededTrackedKeyboardEvent)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsUsageEngagementKeyboard")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsUsageEngagementKeyboard")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
seededTrackedKeyboardEvent | SeededTrackedKeyboardEvent | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
applicationsUsageInstallation - (Deprecated)
applicationsUsageInstallation(trackedApplicationInstall)
/applications/usage/installation [POST]
Logs the installation events of the Pieces application.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
val trackedApplicationInstall : TrackedApplicationInstall = // TrackedApplicationInstall |
try {
apiInstance.applicationsUsageInstallation(trackedApplicationInstall)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#applicationsUsageInstallation")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#applicationsUsageInstallation")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
trackedApplicationInstall | TrackedApplicationInstall | [optional] |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: Not defined
postApplicationsUsageUpdated - (Deprecated)
postApplicationsUsageUpdated(trackedApplicationUpdate)
/applications/usage/updated [POST]
Tracks updates to the Pieces application, including version changes.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ApplicationsApi()
val trackedApplicationUpdate : TrackedApplicationUpdate = // TrackedApplicationUpdate | Sending over the previous application version, the current version, and the user.
try {
apiInstance.postApplicationsUsageUpdated(trackedApplicationUpdate)
} catch (e: ClientException) {
println("4xx response calling ApplicationsApi#postApplicationsUsageUpdated")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApplicationsApi#postApplicationsUsageUpdated")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
trackedApplicationUpdate | TrackedApplicationUpdate | Sending over the previous application version, the current version, and the user. | [optional] |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: Not defined