# Last Price Team API

**Canonical:** https://apis.io/apis/last-price-ai/last-price-ai-team-api/  
**Provider:** Last Price — https://apis.io/providers/last-price-ai/  
**Base URL:** https://api.last-price.ai  
**Documentation:** https://last-price.ai/api-docs

Last Price Team API is one of 49 APIs that [Last Price](https://apis.io/providers/last-price-ai/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Team. The published artifact set on APIs.io includes an OpenAPI specification.

Members, roles and invitations of a workspace. Each operation takes the dashboard session cookie of a signed-in member (owner or admin to make a change), or an API key (`x-api-key`) of that same workspace holding the `team:admin` scope by name (`x-required-scopes`), acting for the person who created the key. Only an owner or admin signed in to the dashboard can create such a key. An agent token or other JWT is refused with 403 `team_admin_requires_api_key`, because it does not name the key it came from, so the creator cannot be checked. Rules for a key, checked on every call, stricter than the dashboard: - Only in the key's own workspace (403 `workspace_forbidden`), never on the agent starter plan (403 `sandbox_restricted`). - Only while the key's creator is an admitted account with an active owner or admin membership of the workspace; a key created before creators were recorded never qualifies (403 `key_creator_forbidden`). - Never grants the owner role (403 `owner_role_forbidden`) or a role above the creator's own (403 `role_above_creator`). - Never changes or removes an owner: the workspace owner of record (`tenants.owner_id`) answers 403 `workspace_owner_protected`, any other owner 403 `target_is_owner`, and a change that would leave no active owner 409 `last_owner`. Never changes or removes the creator's own membership either (403 `target_is_creator`). The owner rules are checked before the creator rule, so the owner of record gets `workspace_owner_protected` even from a key they created. - Demoting or removing an admin needs a key whose creator is the owner (403 `admin_change_requires_owner`). - The key row and the creator's account are re-checked, locked, inside the transaction of each change: a key revoked, expired or stripped of `team:admin` mid-request is refused (403 `key_revoked`), as is a creator suspended mid-request (403 `key_creator_forbidden`). - An invitation a key sends records the key (`created_by_api_key_id`). It can be accepted only while that key is still valid and holds `team:admin`, and its creator is still an active owner or admin at or above the invited role (otherwise `POST /api/invitations/accept` answers 403 `invitation_no_longer_authorized`). Revoking the key revokes its pending invitations. Rules for every caller, a dashboard session included, and an owner too: - The membership of the workspace owner of record is never demoted or removed through these routes, by anyone, themselves included (403 `workspace_owner_protected`). There is no ownership transfer operation; the message points to support@last-price.ai for that. - No change may leave the workspace without an active owner, whether by removing, demoting, or leaving (409 `last_owner`). Make another member an owner first. - A dashboard session needs an ACTIVE owner or admin membership to change anyone else; a suspended one gets 403 (`membership_suspended` from the route check, or the plain owner-or-admin refusal when the suspension lands while the change runs). - A change Postgres aborts because it collided with a concurrent change to the same members (a deadlock or serialization failure) is rolled back whole and answers 409 `concurrent_team_change` with `retryable: true`. Send the same request again. With a key, the attempt is recorded as a `team.refused` audit row like any other refusal. Every call made with a key, reads included, is written to the audit log (`GET /api/audit`, `subject_kind=workspace_team`) with the key as the actor, its agent when the key is agent-bound, and the creator in `metadata.created_by_user_id`. A change is never made without its audit row. A call refused once the key is authenticated writes a `team.refused` row (`metadata.refusal`, `metadata.attempted_action`) in the key's own workspace, after the refused change is rolled back; the response is unchanged. Those rows are readable only by owners and admins (see `GET /api/audit`). The dashboard's Team page lists them.

## Operations (11)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/invitations/lookup` | Look up an invitation link |
| POST | `/api/workspaces/{workspaceId}/invitations/{invitationId}/resend` | Resend an invitation |
| GET | `/api/workspaces/roles` | List workspace roles and their scopes |
| GET | `/api/workspaces/{workspaceId}/team` | List team members |
| POST | `/api/workspaces/{workspaceId}/team` | Add a team member |
| PATCH | `/api/workspaces/{workspaceId}/team/{userId}` | Update team member role |
| DELETE | `/api/workspaces/{workspaceId}/team/{userId}` | Remove team member |
| GET | `/api/workspaces/{workspaceId}/invitations` | List pending invitations |
| POST | `/api/workspaces/{workspaceId}/invitations` | Send a new invitation |
| DELETE | `/api/workspaces/{workspaceId}/invitations/{invitationId}` | Revoke an invitation |
| POST | `/api/invitations/accept` | Accept an invitation by token |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/last-price-ai/openapi/last-price-ai-team-api-openapi.yml

## Other Last Price APIs (12)

- [Last Price Agents API](https://apis.io/apis/last-price-ai/last-price-ai-agents-api/)
- [Last Price API Keys API](https://apis.io/apis/last-price-ai/last-price-ai-api-keys-api/)
- [Last Price Approvals API](https://apis.io/apis/last-price-ai/last-price-ai-approvals-api/)
- [Last Price Audit API](https://apis.io/apis/last-price-ai/last-price-ai-audit-api/)
- [Last Price Auth API](https://apis.io/apis/last-price-ai/last-price-ai-auth-api/)
- [Last Price Authentication API](https://apis.io/apis/last-price-ai/last-price-ai-authentication-api/)
- [Last Price Billing API](https://apis.io/apis/last-price-ai/last-price-ai-billing-api/)
- [Last Price Blocks API](https://apis.io/apis/last-price-ai/last-price-ai-blocks-api/)
- [Last Price Commerce API](https://apis.io/apis/last-price-ai/last-price-ai-commerce-api/)
- [Last Price Compute API](https://apis.io/apis/last-price-ai/last-price-ai-compute-api/)
- [Last Price Contacts API](https://apis.io/apis/last-price-ai/last-price-ai-contacts-api/)
- [Last Price Costs API](https://apis.io/apis/last-price-ai/last-price-ai-costs-api/)

## Tags

Team

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/last-price-ai` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/last-price-ai/last-price-ai-team-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/last-price-ai/.
