Productmind API

Users covers your own account. Get your profile, list the browsers, devices and apps signed in to your account, and sign out one of them or every one except the one you're using. The Productmind agent on your machine uses it too: list your online agents, get the address an agent connects to, report and read back the models it can run, and pick up the work and live previews sent to it. See Profile and notifications.


Get the current authenticated user

GET
https://api.productmind.ai
/users/me

Returns the profile of the currently authenticated user including their organization and subscription details. Returns: id, email, firstName, lastName, role, organizationId, subscription.

Get the current authenticated user › Responses

200

Current user profile

​UserDTO · required

Find which of your workspaces holds an item

GET
https://api.productmind.ai
/users/me/entity-workspace

For a link to a session, feature, chat, note, task, bug report, feature request, release or customer interaction that did not open in the current workspace: returns the one of your own workspaces in your organization that holds it, so you can switch to it. Answers 404 when none of your workspaces holds it or you may not read that kind of item.

Find which of your workspaces holds an item › query Parameters

entityType
​string · enum · required

What the link names

Enum values:
session
feature
chat
note
task
bug_report
feature_request
release
entityId
​string · uuid · pattern: ^([0-9a-fA-F]{8}-[0-… · required

The id the link names

exclude
​string · uuid · pattern: ^([0-9a-fA-F]{8}-[0-…

A workspace not to search: the one the link already failed in

Find which of your workspaces holds an item › Responses

The workspace that holds the item

​EntityWorkspaceDTO · required

List the current user's active sessions

GET
https://api.productmind.ai
/users/me/sessions

Returns every non-expired user_token row for the caller, tagged with its origin source (password, idp, mcp, invitation, referral, onboarding). Drives the Connected apps UI — each row exposes a Revoke button except the one matching the caller's current JWT.

List the current user's active sessions › Responses

200

Active session list

​UserSessionDTO[] · required

Sign out everywhere else

DELETE
https://api.productmind.ai
/users/me/sessions

Hard-deletes every user_token row for the caller except the one issuing the current JWT (identified via the JWT jti claim).

Sign out everywhere else › Responses

200

Number of sessions revoked

​object · required

Revoke a single session

DELETE
https://api.productmind.ai
/users/me/sessions/{id}

Hard-deletes the named user_token row. Refuses to delete the row matching the caller's current JWT — sign out instead.

Revoke a single session › path Parameters

id
​string · uuid · required

Revoke a single session › Responses

Session revoked

No data returned

List the caller's online local Productmind agent instances

GET
https://api.productmind.ai
/users/me/codeflow/instances

Returns the user's currently-connected personal Productmind agent instances (one row per online instance). Drives the session build-mode picker's 'Build on your Productmind agent: ' options.

List the caller's online local Productmind agent instances › Responses

200

Online Productmind agent instances

​CodeflowInstanceDTO[] · required