{"components":{"schemas":{"apierr.ErrBody":{"properties":{"code":{"description":"Code is a stable machine-readable identifier for this error: the domain\ncode where one exists (e.g. slug_conflict, instance_not_found,\nconfirmation_required), else the spec's generic code (invalid_request,\npermission_denied, not_found, conflict, internal_error).","example":"slug_conflict","type":"string"},"doc_url":{"description":"DocURL links to documentation about this error, when available.","type":"string"},"message":{"description":"Message is a human-readable description of what went wrong.","example":"The request was invalid.","type":"string"},"object":{"description":"Object is the discriminator; always \"error\".","example":"error","type":"string"},"param":{"description":"Param names the request parameter this error refers to, when applicable.","example":"email","type":"string"},"type":{"description":"Type is the error's category, from its HTTP status: validation_error,\nauthentication_error, authorization_error, not_found, conflict_error,\nrate_limit_error or internal_error.","example":"validation_error","type":"string"}},"type":"object"},"apierr.ErrResponse":{"properties":{"error":{"$ref":"#/components/schemas/apierr.ErrBody"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_billing_types.BillingAccount":{"properties":{"billing_interval":{"description":"monthly or annual: the contract's billing frequency on a paid plan.","enum":["monthly","annual"],"example":"monthly","type":"string"},"custom_domains":{"type":"integer"},"entitlements":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_catalog_types.WorkspaceEntitlement"},"fga_instances":{"description":"Production instances with Fine-Grained Authorization on, and custom\nauth domains.","type":"integer"},"has_subscription":{"description":"Whether the workspace is on a paid plan.","type":"boolean"},"plan":{"description":"The workspace's plan, and when it last changed. It follows the package\nof the workspace's contract on the directory instance, changed in\nbilling's portal on the Billing page.","example":"pro","type":"string"},"plan_changed_at":{"example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"projects":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_billing_types.ProjectCounts"},"scheduled_plan":{"description":"The plan of the contract's pending change: a downgrade waiting for the\nend of the period or the term. A pending change of billing interval\nalone is none. Null while none is pending.","example":"free","type":"string"},"scheduled_plan_at":{"description":"When the scheduled plan applies; null with no scheduled plan.","example":"2026-12-31T00:00:00Z","format":"date-time","type":"string"},"scheduled_plan_blockers":{"description":"The Free checklist (pontive-spec 10, Downgrade to Free): while a\ndowngrade to Free is pending, what the workspace would hold that Free\ncannot; while a move to Free keeps it paused, what still does. Null\notherwise.","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_billing_types.Blocker"},"type":"array","uniqueItems":false},"seats":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_billing_types.SeatCounts"},"workspace_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_billing_types.Blocker":{"properties":{"count":{"example":3,"type":"integer"},"kind":{"enum":["seats","fga_instances","custom_domains"],"example":"seats","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_billing_types.ProjectCounts":{"description":"Projects: the plan's included slots, the live ones, those beyond the\nslots, the b2b ones, the paused ones.","properties":{"additional":{"example":1,"type":"integer"},"b2b":{"example":1,"type":"integer"},"included":{"example":1,"type":"integer"},"live":{"example":2,"type":"integer"},"paused":{"example":0,"type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_billing_types.SeatCounts":{"description":"Seats: the members, and the plan's included seats. A pending\ninvitation holds no seat.","properties":{"current":{"example":2,"type":"integer"},"included":{"example":1,"type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_billing_types.WorkspaceUsage":{"properties":{"billing_interval":{"$ref":"#/components/schemas/plan.Interval"},"meters":{"additionalProperties":{"$ref":"#/components/schemas/usage.MeterUsage"},"description":"Meters is every meter pooled across the workspace's instances,\nproduction and non-production alike, against the plan's allowances.","type":"object"},"period":{"$ref":"#/components/schemas/usage.Period"},"plan":{"$ref":"#/components/schemas/plan.ID"},"projects":{"items":{"$ref":"#/components/schemas/usage.ProjectLine"},"type":"array","uniqueItems":false},"reported_at":{"type":"string"},"tracked":{"additionalProperties":{"type":"integer"},"description":"Tracked holds measured-only counters: tokens issued, by kind.","type":"object"},"workspace_id":{"type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_catalog_types.Base":{"properties":{"paid":{"example":true,"type":"boolean"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_catalog_types.MeterPrice":{"properties":{"cap":{"description":"A hard limit (quota_exceeded); null where there is none.","type":"integer"},"included":{"description":"The allowance before the meter bills; null where it is not billed.","example":25000,"type":"integer"},"per":{"description":"The unit the meter bills in beyond the allowance.","example":1,"type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_catalog_types.Plan":{"properties":{"audit_log_retention_hours":{"description":"How long the workspace's instances keep their audit log's standard\nentries and their request log, in hours.","example":168,"type":"integer"},"base":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_catalog_types.Base"},"description":{"type":"string"},"highlights":{"description":"What the pricing table says about the plan beyond its numbers, written\nas what the plan adds to the one below it.","items":{"type":"string"},"type":"array","uniqueItems":false},"id":{"example":"pro","type":"string"},"included_projects":{"description":"Projects and seats the base fee covers.","example":1,"type":"integer"},"included_seats":{"example":1,"type":"integer"},"max_non_prod_instances":{"description":"Bounds each project's non-production instances; null is unlimited.","type":"integer"},"modules_available":{"description":"Modules enable-able in any instance of the workspace.","items":{"type":"string"},"type":"array","uniqueItems":false},"modules_non_production":{"description":"Modules enable-able in non-production instances only.","items":{"type":"string"},"type":"array","uniqueItems":false},"name":{"example":"Pro","type":"string"},"offered":{"description":"Whether a workspace may move to the plan. A retired plan keeps serving\nthe workspaces on it.","type":"boolean"},"rank":{"description":"Orders plans by price; a move to a lower rank is a downgrade.","example":1,"type":"integer"},"request_log_retention_hours":{"example":168,"type":"integer"},"usage":{"additionalProperties":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_catalog_types.MeterPrice"},"description":"Each meter's allowance or cap, by meter key, pooled across the\nworkspace's instances. A meter absent is measured and shown, never\ngated.","type":"object"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_catalog_types.WorkspaceEntitlement":{"description":"What the workspace's plan grants, as the console shows it.","properties":{"audit_log_retention_hours":{"description":"How long the audit log's standard entries and the request log are\nkept, in hours.","type":"integer"},"included_projects":{"description":"Projects and seats the plan includes.","example":1,"type":"integer"},"included_seats":{"example":1,"type":"integer"},"max_non_prod_instances":{"description":"Bounds each project's non-production instances; null is unlimited.","type":"integer"},"modules_available":{"items":{"type":"string"},"type":"array","uniqueItems":false},"modules_non_production":{"items":{"type":"string"},"type":"array","uniqueItems":false},"name":{"example":"Pro","type":"string"},"plan":{"example":"pro","type":"string"},"request_log_retention_hours":{"type":"integer"},"usage":{"additionalProperties":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_catalog_types.MeterPrice"},"type":"object"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_domain_types.CreateDomainRequest":{"properties":{"domain":{"description":"The hostname, e.g. auth.acme.com","example":"auth.acme.com","type":"string"},"instance_id":{"description":"The ID of the instance to add the domain to","example":"inst_4hd8","type":"string"}},"required":["domain","instance_id"],"type":"object"},"github_com_revotech-group_platform-management-api_core_domain_types.CreateDomainResponse":{"properties":{"domain":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.Domain"},"object":{"description":"The object type","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_domain_types.Domain":{"description":"The created domain. It starts pending, carrying the challenge that must be\npublished before it can be activated.","properties":{"created_at":{"description":"The time when the domain was created","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"domain":{"description":"The name of the domain","type":"string"},"id":{"description":"The ID of the domain","type":"string"},"instance_id":{"description":"The ID of the instance the domain is associated with","type":"string"},"ssl":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.DomainSSL"},"status":{"description":"The status of the domain","type":"string"},"type":{"description":"The type of the domain. Always \"auth_server\".","enum":["auth_server"],"type":"string"},"updated_at":{"description":"The time when the domain was last updated","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"usage":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.DomainUsage"},"verification":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.DomainVerification"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_domain_types.DomainSSL":{"description":"The SSL information for the domain","properties":{"auto_renew":{"description":"Whether the SSL certificate is auto-renewed","type":"boolean"},"expires_at":{"description":"The time when the SSL certificate expires; null before it is issued","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"issued_at":{"description":"The time when the SSL certificate was issued; null before it is","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"issuer":{"description":"The issuer of the SSL certificate","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_domain_types.DomainUsage":{"description":"The usage information for the domain","properties":{"apps_count":{"description":"The number of apps using the domain","type":"integer"},"service_accounts_count":{"description":"The number of service accounts using the domain","type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_domain_types.DomainVerification":{"description":"The verification information for the domain","properties":{"challenge":{"description":"The value that must appear as a TXT record at Target. Without this the\ncustomer can see which record to create but not what to put in it, so it\nis required for the verification flow to be completable at all.","type":"string"},"last_check_at":{"description":"The time when the domain was last checked; null before the first check","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"last_check_error":{"description":"The error message from the last check","type":"string"},"method":{"description":"The method used to verify the domain: \"dns_txt\" for a customer hostname,\n\"platform\" for one the platform itself owns","type":"string"},"target":{"description":"The DNS record name the proof is published at, e.g.\n_pontive-challenge.auth.acme.com","type":"string"},"verified_at":{"description":"The time when the domain was verified; null until it is","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_domain_types.ListDomainsResponse":{"properties":{"data":{"description":"The list of domains","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.Domain"},"type":"array","uniqueItems":false},"object":{"description":"The object type","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.Pagination"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_domain_types.Pagination":{"description":"The pagination information","properties":{"limit":{"description":"The number of items per page","type":"integer"},"page":{"description":"The page number","type":"integer"},"total":{"description":"The total number of items","type":"integer"},"total_pages":{"description":"The number of pages","type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_domain_types.VerifyDomainResponse":{"properties":{"domain":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.Domain"},"object":{"description":"The object type","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_instance_types.Capabilities":{"description":"The per-instance capability switches","properties":{"billing":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Capability"},"fga":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Capability"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_instance_types.Capability":{"description":"Fine-Grained Authorization: custom resource types and everything built\non them.","properties":{"enabled":{"description":"Whether the capability is enabled","type":"boolean"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_instance_types.CreateInstanceRequest":{"properties":{"description":{"description":"The description of the instance (0-500 chars)","type":"string"},"environment":{"description":"The environment of the instance. A project holds at most one production\ninstance.","enum":["production","non_production"],"example":"non_production","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Metadata"},"name":{"description":"The name of the instance (1-100 chars). Required for non_production;\nmust be omitted for production (instance_name_not_settable).","example":"Staging","type":"string"},"project_id":{"description":"The ID of the project to create the instance in","example":"proj_2x9k","type":"string"},"slug":{"description":"The slug of the instance (2-20 chars). Required for non_production; must\nbe omitted for production (instance_name_not_settable).","example":"staging","type":"string"}},"required":["environment","project_id"],"type":"object"},"github_com_revotech-group_platform-management-api_core_instance_types.DeleteInstanceRequest":{"properties":{"confirm_delete":{"description":"Must be true; without it the API returns 400 confirmation_required.","example":true,"type":"boolean"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_instance_types.Instance":{"properties":{"auth_server_domains":{"description":"All active auth-server domains, canonical first","items":{"type":"string"},"type":"array","uniqueItems":false},"capabilities":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Capabilities"},"created_at":{"description":"The time when the instance was created","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"deleted_at":{"description":"The time when the instance was deleted, if applicable","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"description":{"description":"The description of the instance","type":"string"},"domain":{"description":"The primary (canonical) auth domain","example":"my-app-staging.auth.us.pontive.dev","type":"string"},"effective_status":{"description":"The effective status: the project's status overrides the instance's own\nwhile the project is not active","enum":["active","paused","deleted"],"example":"active","type":"string"},"environment":{"description":"The environment of the instance, fixed at creation","enum":["production","non_production"],"example":"non_production","type":"string"},"id":{"description":"The unique identifier of the instance","example":"inst_4hd8","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Metadata"},"name":{"description":"The name of the instance. Always \"Production\" for the production instance.","example":"Staging","type":"string"},"object":{"description":"The object type","example":"instance","type":"string"},"paused_at":{"description":"The time when the instance was paused, if applicable","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"project_id":{"description":"The ID of the project the instance belongs to","example":"proj_2x9k","type":"string"},"purge_scheduled_at":{"description":"When a deleted instance's restore window ends, deleted_at plus 30 days: it\ncan be restored until then, and is purged after (route review D30).\nNull unless the instance's own status is is deleted. An instance of a deleted project goes with it, at the project's purge_scheduled_at.","example":"2026-12-30T09:30:00Z","format":"date-time","type":"string"},"region":{"description":"The region, inherited from the project","enum":["us","eu","au"],"example":"us","type":"string"},"shard_id":{"description":"The ID of the shard the instance is deployed on","example":"shd_1a2b","type":"string"},"slug":{"description":"The slug of the instance. Always \"production\" for the production instance.\nImmutable.","example":"staging","type":"string"},"status":{"description":"The instance's own status","enum":["active","paused","deleted"],"example":"active","type":"string"},"tenancy_mode":{"description":"The read-only tenancy mode, inherited from the project","enum":["b2b","b2c"],"example":"b2c","type":"string"},"updated_at":{"description":"The time when the instance was last updated","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"workspace_id":{"description":"The ID of the workspace that owns the project","example":"ws_7fq1","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_instance_types.ListInstancesResponse":{"properties":{"data":{"description":"List of instances","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Instance"},"type":"array","uniqueItems":false},"object":{"description":"The object type","example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Pagination"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_instance_types.Metadata":{"additionalProperties":{"type":"string"},"description":"The new metadata","type":"object"},"github_com_revotech-group_platform-management-api_core_instance_types.Pagination":{"description":"Pagination information","properties":{"limit":{"description":"Number of records per page","type":"integer"},"page":{"description":"Current page number","type":"integer"},"total":{"description":"Total number of records","type":"integer"},"total_pages":{"description":"Total number of pages","type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_instance_types.UpdateInstanceRequest":{"properties":{"description":{"description":"The new description","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Metadata"},"name":{"description":"The new name. non_production only; renaming the production instance\nreturns instance_name_not_settable.","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.AddInstanceMemberRequest":{"properties":{"roles":{"description":"The roles to hold on the instance\nrequired: true\nenum: admin,developer,support,viewer","items":{"type":"string"},"type":"array","uniqueItems":false},"user_id":{"description":"The user to add. They must already be a member of the instance's\nworkspace; anyone else is invited to the workspace or project first.\nrequired: true","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.AddProjectMemberRequest":{"properties":{"roles":{"description":"The roles to hold on the project\nrequired: true\nenum: admin,developer,viewer","items":{"type":"string"},"type":"array","uniqueItems":false},"user_id":{"description":"The user to add. They must already be a member of the project's\nworkspace; anyone else is invited instead.\nrequired: true","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.GetAccessResponse":{"properties":{"managed_projects":{"description":"On a workspace, for a caller who does not manage its members: the ids\nof its projects whose members they manage (project:members.manage),\ndirectly or by inheritance. Absent for whoever manages the workspace's\nmembers, who manages every project's.","items":{"type":"string"},"type":"array","uniqueItems":false},"object":{"description":"The object type","type":"string"},"permissions":{"description":"The platform permission keys the caller holds, through any role —\nheld on the object or inherited from above it","items":{"type":"string"},"type":"array","uniqueItems":false},"roles":{"description":"The roles the caller holds on the object itself; empty for someone\nreaching it by inheritance alone","items":{"type":"string"},"type":"array","uniqueItems":false},"staff_role":{"description":"The staff role the caller reaches it with, if any\nenum: pontive_support,pontive_admin,pontive_release","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.GetInvitationResponse":{"properties":{"created_at":{"description":"The time when the invitation was created","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"expires_at":{"description":"The time when the invitation expires","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"id":{"description":"The unique identifier of the invitation","type":"string"},"invited_by":{"description":"The user who sent the invitation","type":"string"},"invitee_email":{"description":"The email address the invitation was sent to","type":"string"},"last_sent_at":{"description":"The time when the invitation was last sent","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"message":{"description":"The message included with the invitation","type":"string"},"object":{"description":"The object type","type":"string"},"project":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.InvitationProject"},"project_roles":{"description":"For an invitation to a project, the roles the invitee will hold on it.\nThe invitee joins the workspace too, with no role there unless Roles\nnames one.\nenum: admin,developer,viewer","items":{"type":"string"},"type":"array","uniqueItems":false},"resend_count":{"description":"How many times the invitation has been resent","type":"integer"},"roles":{"description":"The roles the invitee will hold on the workspace once they accept\nenum: admin,billing,developer","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.GetMemberResponse":{"properties":{"email":{"description":"The email address of the member","type":"string"},"email_verified":{"description":"Whether the member's email address has been verified","type":"boolean"},"family_name":{"description":"The family name of the member","type":"string"},"given_name":{"description":"The given name of the member","type":"string"},"joined_at":{"description":"The time when the member joined the workspace","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"last_active_at":{"description":"The time when the member was last active","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"name":{"description":"The display name of the member","type":"string"},"object":{"description":"The object type","type":"string"},"picture":{"description":"The profile picture of the member","type":"string"},"roles":{"description":"The roles the member holds on the workspace, project or instance the\nlist is of. A workspace member holds owner, admin, billing or developer —\nor none, for someone added to one of its projects or instances alone.\nA project member holds admin, developer or viewer; an instance member\nadmin, developer, support or viewer.","items":{"type":"string"},"type":"array","uniqueItems":false},"status":{"description":"The status of the member's account","type":"string"},"user_id":{"description":"The unique identifier of the user","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.Grant":{"properties":{"environment":{"description":"The instance's environment\nenum: production,non_production","type":"string"},"instance_id":{"description":"The instance granted on, for a grant on an instance","type":"string"},"instance_name":{"description":"The instance's name","type":"string"},"joined_at":{"description":"When the grant was made","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"object":{"description":"The object type","type":"string"},"project_id":{"description":"The project: the one granted on, or the instance's","type":"string"},"project_name":{"description":"The project's name","type":"string"},"resource_type":{"description":"What the grant is on\nenum: project,instance","type":"string"},"roles":{"description":"The roles held there","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.Invitation":{"properties":{"created_at":{"description":"The time when the invitation was created","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"expires_at":{"description":"The time when the invitation expires","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"id":{"description":"The unique identifier of the invitation","type":"string"},"invited_by":{"description":"The user who sent the invitation","type":"string"},"invitee_email":{"description":"The email address the invitation was sent to","type":"string"},"last_sent_at":{"description":"The time when the invitation was last sent","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"message":{"description":"The message included with the invitation","type":"string"},"object":{"description":"The object type","type":"string"},"project":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.InvitationProject"},"project_roles":{"description":"For an invitation to a project, the roles the invitee will hold on it.\nThe invitee joins the workspace too, with no role there unless Roles\nnames one.\nenum: admin,developer,viewer","items":{"type":"string"},"type":"array","uniqueItems":false},"resend_count":{"description":"How many times the invitation has been resent","type":"integer"},"roles":{"description":"The roles the invitee will hold on the workspace once they accept\nenum: admin,billing,developer","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.InvitationProject":{"description":"For an invitation to a project, the project; absent on one to the\nworkspace alone.","properties":{"id":{"description":"The ID of the project","type":"string"},"name":{"description":"The name of the project","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.InviteMembersRequest":{"properties":{"emails":{"description":"The email addresses to invite\nrequired: true","items":{"type":"string"},"type":"array","uniqueItems":false},"message":{"description":"An optional message included in the invitation email","type":"string"},"roles":{"description":"The roles the invitees will hold once they accept. `owner` cannot be\ngranted by invitation — ownership moves through transfer-ownership.\nenum: admin,billing,developer","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.InviteMembersResponse":{"properties":{"data":{"description":"The invitations sent: new ones, and live ones an address already held,\nreissued with this request's roles and a new link (resend_count > 0)","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.Invitation"},"type":"array","uniqueItems":false},"object":{"description":"The object type","type":"string"},"skipped":{"description":"The addresses that got no invitation, and why. Skipping is not an\nerror: a request whose every address was skipped still succeeds.","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.SkippedInvitee"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.InviteProjectMembersRequest":{"properties":{"emails":{"description":"The email addresses to invite\nrequired: true","items":{"type":"string"},"type":"array","uniqueItems":false},"message":{"description":"An optional message included in the invitation email","type":"string"},"roles":{"description":"The roles the invitees will hold on the project once they accept. They\njoin the project's workspace too, with no role there.\nrequired: true\nenum: admin,developer,viewer","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.ListGrantsResponse":{"properties":{"data":{"description":"The grants, projects first, then instances, each by name","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.Grant"},"type":"array","uniqueItems":false},"object":{"description":"The object type","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_paging.Pagination"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.ListInvitationsResponse":{"properties":{"data":{"description":"List of invitations","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.Invitation"},"type":"array","uniqueItems":false},"object":{"description":"The object type","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.Pagination"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.ListMembersResponse":{"properties":{"data":{"description":"List of members","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.Member"},"type":"array","uniqueItems":false},"object":{"description":"The object type","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.Pagination"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.Member":{"properties":{"email":{"description":"The email address of the member","type":"string"},"email_verified":{"description":"Whether the member's email address has been verified","type":"boolean"},"family_name":{"description":"The family name of the member","type":"string"},"given_name":{"description":"The given name of the member","type":"string"},"joined_at":{"description":"The time when the member joined the workspace","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"last_active_at":{"description":"The time when the member was last active","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"name":{"description":"The display name of the member","type":"string"},"object":{"description":"The object type","type":"string"},"picture":{"description":"The profile picture of the member","type":"string"},"roles":{"description":"The roles the member holds on the workspace, project or instance the\nlist is of. A workspace member holds owner, admin, billing or developer —\nor none, for someone added to one of its projects or instances alone.\nA project member holds admin, developer or viewer; an instance member\nadmin, developer, support or viewer.","items":{"type":"string"},"type":"array","uniqueItems":false},"status":{"description":"The status of the member's account","type":"string"},"user_id":{"description":"The unique identifier of the user","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.Pagination":{"description":"Pagination information","properties":{"limit":{"description":"Number of records per page","type":"integer"},"page":{"description":"Current page number","type":"integer"},"total":{"description":"Total number of records","type":"integer"},"total_pages":{"description":"Total number of pages","type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.ProjectInvitationRequest":{"properties":{"message":{"description":"An optional message replacing the original (resend)","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.ResendInvitationRequest":{"properties":{"message":{"description":"An optional message replacing the original","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.SkippedInvitee":{"properties":{"email":{"example":"jane.doe@example.com","type":"string"},"reason":{"description":"already_member: a member already. An invite does not change a member's\nroles.","enum":["already_member"],"example":"already_member","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.TransferOwnershipRequest":{"properties":{"new_owner_id":{"description":"The member who becomes the new owner. They must already be a member.\nrequired: true","type":"string"},"retain_as":{"description":"The roles the caller keeps once they are no longer an owner. Defaults to\nadmin; an empty list leaves them a member with no role.","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.UpdateInstanceMemberRolesRequest":{"properties":{"roles":{"description":"The roles to hold on the instance, replacing the member's current ones\nrequired: true\nenum: admin,developer,support,viewer","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.UpdateMemberRolesRequest":{"properties":{"roles":{"description":"The roles to grant, replacing the member's current ones. An empty list\nleaves them a member holding no role: belonging to the workspace for\nthe sake of what they hold on its projects and instances.\nrequired: true\nenum: owner,admin,billing,developer","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_member_types.UpdateProjectMemberRolesRequest":{"properties":{"roles":{"description":"The roles to hold on the project, replacing the member's current ones\nrequired: true\nenum: admin,developer,viewer","items":{"type":"string"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_paging.Pagination":{"description":"Pagination information","properties":{"limit":{"description":"The page size","type":"integer"},"page":{"description":"The page number, from 1","type":"integer"},"total":{"description":"The number of items in the whole list","type":"integer"},"total_pages":{"description":"The number of pages","type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.ComplianceTags":{"description":"Compliance tags of the project","properties":{"GDPR":{"type":"boolean"},"HIPAA":{"type":"boolean"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.CreateProjectRequest":{"properties":{"description":{"description":"The description of the project (0-500 chars)","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Metadata"},"name":{"description":"The name of the project (1-100 chars)","example":"My App","type":"string"},"region":{"description":"The region where the project is deployed","enum":["us","eu","au"],"example":"us","type":"string"},"tenancy_mode":{"description":"The tenancy mode of the project: b2b (organizations) or b2c. Required and\nimmutable once the project is created.","enum":["b2b","b2c"],"example":"b2c","type":"string"},"workspace_id":{"description":"The ID of the workspace the project is created in","example":"ws_7fq1","type":"string"}},"required":["name","tenancy_mode","workspace_id"],"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.DeleteProjectRequest":{"properties":{"confirm_delete":{"description":"Must be true; without it the API returns 400 confirmation_required.\nDeleting a project soft-deletes every instance in it.","example":true,"type":"boolean"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.InstanceSummary":{"properties":{"environment":{"description":"The environment of the instance","enum":["production","non_production"],"example":"non_production","type":"string"},"id":{"description":"The unique identifier of the instance","example":"inst_4hd8","type":"string"},"name":{"description":"The name of the instance","example":"Development","type":"string"},"slug":{"description":"The slug of the instance","example":"dev","type":"string"},"status":{"description":"The effective status of the instance","enum":["active","paused","deleted"],"example":"active","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.ListPlansResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_catalog_types.Plan"},"type":"array","uniqueItems":false},"object":{"description":"The object type: list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_paging.Pagination"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.ListProjectsResponse":{"properties":{"data":{"description":"List of projects","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Project"},"type":"array","uniqueItems":false},"object":{"description":"The object type","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Pagination"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.Metadata":{"additionalProperties":{"type":"string"},"description":"The new metadata for the project","type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.Pagination":{"description":"Pagination information","properties":{"limit":{"description":"Number of records per page","type":"integer"},"page":{"description":"Current page number","type":"integer"},"total":{"description":"Total number of records","type":"integer"},"total_pages":{"description":"Total number of pages","type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.Project":{"properties":{"charges":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.ProjectCharges"},"compliance_tags":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.ComplianceTags"},"created_at":{"description":"The time when the project was created","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"deleted_at":{"description":"The time when the project was deleted, if applicable","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"description":{"description":"The description of the project","type":"string"},"id":{"description":"The unique identifier of the project","example":"proj_2x9k","type":"string"},"instances":{"description":"Read-only summary of the project's instances, oldest first","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.InstanceSummary"},"type":"array","uniqueItems":false},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Metadata"},"name":{"description":"The name of the project","example":"My App","type":"string"},"object":{"description":"The object type","example":"project","type":"string"},"paused_at":{"description":"The time when the project was paused, if applicable","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"purge_scheduled_at":{"description":"When a deleted project's restore window ends, deleted_at plus 30 days: it\ncan be restored until then, and is purged after (route review D30).\nNull unless the project is deleted.","example":"2026-12-30T09:30:00Z","format":"date-time","type":"string"},"region":{"description":"The region where the project and all its instances are deployed","enum":["us","eu","au"],"example":"us","type":"string"},"slug":{"description":"The slug of the project. Client-supplied, permanent, globally unique and\nnever reused.","example":"my-app","type":"string"},"status":{"description":"The current status of the project","enum":["active","paused","deleted"],"example":"active","type":"string"},"tenancy_mode":{"description":"The project's tenancy mode, chosen at creation and immutable. Every\ninstance inherits it.","enum":["b2b","b2c"],"example":"b2c","type":"string"},"updated_at":{"description":"The time when the project was last updated","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"workspace_id":{"description":"The ID of the workspace that owns this project","example":"ws_7fq1","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.ProjectCharges":{"description":"What the project started billing per month, on the project a create\nreturns and nowhere else: nothing on Free or in one of the plan's\nincluded slots; else the additional-project fee and, on a b2b project,\nthe uplift (pontive-spec 10). Absent where the installation bills\nnothing.","properties":{"included":{"description":"Whether the project took one of the plan's included slots.","type":"boolean"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_project_types.UpdateProjectRequest":{"properties":{"description":{"description":"The new description for the project","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Metadata"},"name":{"description":"The new name for the project\nminLength: 1\nmaxLength: 255","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_secretkey_types.CreateSecretKeyRequest":{"properties":{"description":{"description":"What the key is for (0–500 characters); null or absent for none","type":"string","x-nullable":true},"expires_at":{"description":"When the key stops working; null for never. Must be in the future.","type":"string"},"name":{"description":"Names the caller, e.g. billing-worker (1–100 characters)\nrequired: true","example":"billing-worker","type":"string"},"role":{"description":"The key's authority on its instance\nrequired: true\nenum: admin,developer,support,viewer","enum":["admin","developer","support","viewer"],"example":"developer","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_secretkey_types.ListSecretKeysResponse":{"properties":{"data":{"description":"The keys","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKey"},"type":"array","uniqueItems":false},"object":{"description":"Always \"list\"","example":"list","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.Pagination"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_secretkey_types.Pagination":{"description":"Pagination information","properties":{"limit":{"description":"Number of records per page","type":"integer"},"page":{"description":"Current page number","type":"integer"},"total":{"description":"Total number of records","type":"integer"},"total_pages":{"description":"Total number of pages","type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_secretkey_types.RotateSecretKeyRequest":{"properties":{"expire_previous_in":{"description":"How long the current value keeps working, in seconds: 0 (ends it now)\nto 604800 (7 days). Defaults to 86400 (24 hours).","example":86400,"maximum":604800,"minimum":0,"type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKey":{"properties":{"created_at":{"type":"string"},"created_by":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKeyCreator"},"description":{"description":"What the key is for","type":"string"},"environment":{"description":"The instance's environment","enum":["production","non_production"],"type":"string"},"expires_at":{"description":"When the key stops working; null for never","type":"string"},"id":{"description":"The key's id; safe to log","example":"key_4m9q","type":"string"},"instance_id":{"description":"The only instance the key works on","example":"inst_8hk2","type":"string"},"last_used_at":{"description":"Updated at most once a minute","type":"string"},"leak":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKeyLeak"},"name":{"description":"Names the caller","example":"billing-worker","type":"string"},"object":{"description":"Always \"secret_key\"","example":"secret_key","type":"string"},"preview":{"description":"The value, masked","example":"pontive_sk_live_us_…7aTx","type":"string"},"previous_expires_at":{"description":"When the rolled-out value stops working","type":"string"},"previous_preview":{"description":"The rolled-out value's preview while it still works","type":"string"},"region":{"description":"The project's region","example":"us","type":"string"},"revoked_at":{"type":"string"},"role":{"description":"The key's authority on its instance","enum":["admin","developer","support","viewer"],"type":"string"},"status":{"description":"active, revoked or expired","enum":["active","revoked","expired"],"type":"string"},"updated_at":{"type":"string"},"value":{"description":"The full value: on create and roll answers only. It is never shown again.","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKeyCreator":{"description":"Who created it","properties":{"email":{"example":"ada@acme.com","type":"string"},"id":{"example":"usr_2xK9","type":"string","x-nullable":true},"name":{"example":"Ada Lovelace","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKeyLeak":{"description":"Set while a leaked value still works","properties":{"detected_at":{"description":"When it was found","type":"string"},"evidence":{"additionalProperties":{"type":"string"},"description":"Where it was found: {\"url\": …} for GitHub, {\"origin\": …} for a browser","type":"object"},"source":{"description":"github_secret_scanning or browser_use","enum":["github_secret_scanning","browser_use"],"type":"string"},"value_preview":{"description":"Which value leaked: the current one's or the previous one's preview","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_secretkey_types.UpdateSecretKeyRequest":{"properties":{"description":{"description":"A new description; null clears it, and leaving it out keeps it","type":"string","x-nullable":true},"name":{"description":"A new name (1–100 characters)","type":"string"},"role":{"description":"A new role\nenum: admin,developer,support,viewer","enum":["admin","developer","support","viewer"],"type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_unclaimed_types.ClaimLink":{"properties":{"expires_at":{"example":"2026-12-02T11:00:00Z","format":"date-time","type":"string"},"object":{"example":"claim_link","type":"string"},"url":{"description":"The dashboard's claim page, the code in the fragment.","example":"https://app.pontive.com/claim/inst_01jf...#code=...","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_unclaimed_types.ClaimUnclaimedInstanceRequest":{"properties":{"name":{"description":"Renames the project; omitted keeps its name.","example":"Acme Notes","type":"string"},"workspace_id":{"description":"The workspace the project moves into: the caller must be able to\ncreate a project there.","example":"ws_01ja...","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_unclaimed_types.ClaimWorkspace":{"properties":{"charges":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.ProjectCharges"},"eligible":{"type":"boolean"},"name":{"example":"Acme","type":"string"},"plan":{"description":"The workspace's plan id; empty when it cannot be read.","example":"free","type":"string"},"reason":{"description":"When not eligible, the error code a claim into it would answer:\nproject_limit_exceeded, workspace_suspended, workspace_paused,\nworkspace_cancelled.","example":"project_limit_exceeded","type":"string"},"workspace_id":{"example":"ws_01ja...","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_unclaimed_types.ClaimedProject":{"properties":{"charges":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.ProjectCharges"},"compliance_tags":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.ComplianceTags"},"created_at":{"description":"The time when the project was created","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"deleted_at":{"description":"The time when the project was deleted, if applicable","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"description":{"description":"The description of the project","type":"string"},"id":{"description":"The unique identifier of the project","example":"proj_2x9k","type":"string"},"instances":{"description":"Read-only summary of the project's instances, oldest first","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.InstanceSummary"},"type":"array","uniqueItems":false},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Metadata"},"name":{"description":"The name of the project","example":"My App","type":"string"},"object":{"description":"The object type","example":"project","type":"string"},"paused_at":{"description":"The time when the project was paused, if applicable","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"purge_scheduled_at":{"description":"When a deleted project's restore window ends, deleted_at plus 30 days: it\ncan be restored until then, and is purged after (route review D30).\nNull unless the project is deleted.","example":"2026-12-30T09:30:00Z","format":"date-time","type":"string"},"region":{"description":"The region where the project and all its instances are deployed","enum":["us","eu","au"],"example":"us","type":"string"},"slug":{"description":"The slug of the project. Client-supplied, permanent, globally unique and\nnever reused.","example":"my-app","type":"string"},"status":{"description":"The current status of the project","enum":["active","paused","deleted"],"example":"active","type":"string"},"tenancy_mode":{"description":"The project's tenancy mode, chosen at creation and immutable. Every\ninstance inherits it.","enum":["b2b","b2c"],"example":"b2c","type":"string"},"updated_at":{"description":"The time when the project was last updated","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"workspace_id":{"description":"The ID of the workspace that owns this project","example":"ws_7fq1","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_unclaimed_types.CreateUnclaimedInstanceRequest":{"properties":{"app":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_unclaimed_types.UnclaimedInstanceApp"},"client":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_unclaimed_types.UnclaimedInstanceClient"},"encryption_key":{"description":"A public JWK, EC P-256 or OKP X25519: the secrets are then answered\nsealed to it in encrypted_secrets, never in the clear.","type":"object"},"name":{"description":"The project's name, \"Untitled app\" by default; the claimer may rename it.","example":"Acme Notes","type":"string"},"region":{"description":"A region this installation serves; by default the one nearest the\ncaller, echoed in the response. Immutable.","enum":["us","eu","au"],"example":"us","type":"string"},"tenancy_mode":{"description":"b2c by default. Immutable.","enum":["b2b","b2c"],"example":"b2c","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_unclaimed_types.CreatedUnclaimedInstance":{"properties":{"app_id":{"example":"app_01jf...","type":"string"},"claim_token":{"description":"The instance's ownership until it is claimed, answered once; absent\nwith encryption_key. Never put it in a URL or a log.","example":"pontive_ct_...","type":"string"},"client_secret":{"description":"A web app's client secret; absent for spa and native, and with\nencryption_key.","type":"string"},"encrypted_secrets":{"description":"With encryption_key: a compact JWE (ECDH-ES, A256GCM, kid the key's\nRFC 7638 thumbprint) of {client_secret, secret_key, claim_token}.","type":"string"},"environment":{"example":"non_production","type":"string"},"expires_at":{"description":"When Pontive deletes it, with its users, unless it is claimed first.","example":"2026-12-09T10:00:00Z","format":"date-time","type":"string"},"instance_id":{"example":"inst_01jf...","type":"string"},"issuer":{"description":"The instance's issuer, its auth domain's origin.","example":"https://acme-notes-k3x9q2pa-dev.auth.us.pontive.dev","type":"string"},"limits_url":{"example":"https://www.pontive.com/docs/unclaimed-instances#limits","type":"string"},"name":{"example":"Acme Notes","type":"string"},"object":{"example":"unclaimed_instance","type":"string"},"project_id":{"example":"proj_01jf...","type":"string"},"region":{"enum":["us","eu","au"],"example":"us","type":"string"},"secret_key":{"description":"The developer secret key named keyless; absent with encryption_key.","example":"pontive_sk_test_us_...","type":"string"},"secret_key_id":{"example":"key_01jf...","type":"string"},"tenancy_mode":{"enum":["b2b","b2c"],"example":"b2c","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_unclaimed_types.UnclaimedInstance":{"properties":{"claimed_at":{"description":"Null until claimed.","example":"2026-12-03T10:00:00Z","format":"date-time","type":"string","x-nullable":true},"created_at":{"example":"2026-12-02T10:00:00Z","format":"date-time","type":"string"},"expires_at":{"example":"2026-12-09T10:00:00Z","format":"date-time","type":"string"},"instance_id":{"example":"inst_01jf...","type":"string"},"issuer":{"type":"string"},"name":{"example":"Acme Notes","type":"string"},"object":{"example":"unclaimed_instance","type":"string"},"project_id":{"example":"proj_01jf...","type":"string"},"region":{"enum":["us","eu","au"],"example":"us","type":"string"},"status":{"enum":["unclaimed","claimed"],"example":"unclaimed","type":"string"},"tenancy_mode":{"enum":["b2b","b2c"],"example":"b2c","type":"string"},"workspaces":{"description":"With a Pontive user's session and a link's code: the caller's\nworkspaces where they may create a project, each with whether the\ninstance fits and what a claim would start charging there.","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_unclaimed_types.ClaimWorkspace"},"type":"array","uniqueItems":false}},"type":"object"},"github_com_revotech-group_platform-management-api_core_unclaimed_types.UnclaimedInstanceApp":{"description":"The app made with the instance.","properties":{"redirect_uris":{"description":"Loopback only (localhost, 127.0.0.1, [::1]). Without a port, any port\nmatches on a non-production instance. Default\nhttp://localhost/api/auth/callback and\nhttp://127.0.0.1/api/auth/callback.","example":["http://localhost/api/auth/callback"],"items":{"type":"string"},"type":"array","uniqueItems":false},"type":{"description":"web (default): an oauth confidential client with a client secret, for\nserver sessions; spa: a public oauth client with PKCE; native: a public\nnative client.","enum":["web","spa","native"],"example":"web","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_unclaimed_types.UnclaimedInstanceClient":{"description":"The tool, its version and, when detected, the agent: metrics and abuse\nsignals only, never trusted for limits.","properties":{"agent":{"example":"claude-code","type":"string"},"name":{"example":"pontive-cli","type":"string"},"version":{"example":"1.0.0","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_workspace_types.BillingContact":{"description":"Replaces the billing contact, where invoices and receipts are emailed.\nIts email is required. Needs workspace:billing.manage; sent on its own\nit needs nothing else, so a billing member sets it.","properties":{"address":{"description":"The address of the billing contact","type":"string"},"city":{"description":"The city of the billing contact","type":"string"},"company_name":{"description":"The company name of the billing contact","type":"string"},"country":{"description":"The country of the billing contact","type":"string"},"email":{"description":"The email of the billing contact","type":"string"},"name":{"description":"The name of the billing contact","type":"string"},"phone":{"description":"The phone of the billing contact","type":"string"},"state":{"description":"The state of the billing contact","type":"string"},"tax_id":{"description":"The tax ID of the billing contact","type":"string"},"tax_rate":{"description":"The tax rate of the billing contact","type":"string"},"zip":{"description":"The zip code of the billing contact","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_workspace_types.CancelReason":{"description":"Why the account is closed, for Pontive's analytics.","enum":["no_longer_needed","too_expensive","missing_features","switching_providers","other","no_longer_needed","too_expensive","missing_features","switching_providers","other"],"type":"string","x-enum-varnames":["CancelReasonNoLongerNeeded","CancelReasonTooExpensive","CancelReasonMissingFeatures","CancelReasonSwitchingProviders","CancelReasonOther"]},"github_com_revotech-group_platform-management-api_core_workspace_types.CancelWorkspaceRequest":{"properties":{"confirm":{"description":"Must be true: closing the account is confirmed (400\nconfirmation_required otherwise).","type":"boolean"},"feedback":{"description":"Free-form feedback, for Pontive's analytics.\nmaxLength: 2000","type":"string"},"reason":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.CancelReason"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_workspace_types.CreateWorkspaceRequest":{"properties":{"description":{"description":"The description of the workspace","type":"string"},"name":{"description":"The name of the workspace\nrequired: true\nminLength: 1\nmaxLength: 255","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_workspace_types.ListWorkspacesResponse":{"properties":{"data":{"description":"List of workspaces","items":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Workspace"},"type":"array","uniqueItems":false},"object":{"description":"The object type","type":"string"},"pagination":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Pagination"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_workspace_types.Metadata":{"additionalProperties":{"type":"string"},"description":"The new metadata for the workspace","type":"object"},"github_com_revotech-group_platform-management-api_core_workspace_types.Pagination":{"description":"Pagination information","properties":{"limit":{"description":"Number of records per page","type":"integer"},"page":{"description":"Current page number","type":"integer"},"total":{"description":"Total number of records","type":"integer"},"total_pages":{"description":"Total number of pages","type":"integer"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_workspace_types.UpdateWorkspaceRequest":{"properties":{"billing_contact":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.BillingContact"},"description":{"description":"The new description for the workspace","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Metadata"},"name":{"description":"The new name for the workspace\nminLength: 1\nmaxLength: 255","type":"string"}},"type":"object"},"github_com_revotech-group_platform-management-api_core_workspace_types.Workspace":{"properties":{"billing_contact":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.BillingContact"},"cancelled_at":{"description":"When the workspace was cancelled (pontive-spec 01, Cancellation flow).\nSet while it is cancelled.","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"created_at":{"description":"The time when the workspace was created","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"deleted_at":{"description":"The time when the workspace was deleted","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"},"deletion_scheduled_at":{"description":"When a cancelled workspace is deleted unless it is restored first,\ncancelled_at plus 30 days: its owner restores it until then. Set only on\na cancelled workspace.","example":"2026-12-30T09:30:00Z","format":"date-time","type":"string"},"description":{"description":"The description of the workspace","type":"string"},"id":{"description":"The unique identifier of the workspace","type":"string"},"metadata":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Metadata"},"name":{"description":"The name of the workspace","type":"string"},"object":{"description":"The object type","type":"string"},"purge_scheduled_at":{"description":"When a deleted workspace's restore window ends, deleted_at plus 60\ndays: it can be restored until then (route review D30). Set only on a\ndeleted workspace.","example":"2027-01-29T09:30:00Z","format":"date-time","type":"string"},"slug":{"description":"The slug of the workspace","type":"string"},"status":{"description":"The current status of the workspace\nenum: active,pastdue,suspended,cancelled,deleted","type":"string"},"system":{"description":"System marks a workspace Pontive keeps for itself, shown to Pontive's\nstaff only: holding, the installation's one holding workspace, which\nowns the unclaimed development instances until they are claimed\n(pontive-spec 47 §4.2). Absent for every customer workspace.","enum":["holding"],"example":"holding","type":"string"},"updated_at":{"description":"The time when the workspace was last updated","example":"2026-11-30T09:30:00Z","format":"date-time","type":"string"}},"type":"object"},"plan.ID":{"enum":["free"],"type":"string","x-enum-varnames":["Free"]},"plan.Interval":{"enum":["monthly","annual"],"type":"string","x-enum-varnames":["IntervalMonthly","IntervalAnnual"]},"usage.InstanceLine":{"properties":{"custom_domains":{"type":"integer"},"environment":{"type":"string"},"fga":{"type":"boolean"},"instance_id":{"type":"string"},"meters":{"additionalProperties":{"type":"integer"},"type":"object"},"name":{"type":"string"},"reported_at":{"type":"string"}},"type":"object"},"usage.MeterUsage":{"properties":{"by_project":{"additionalProperties":{"type":"integer"},"type":"object"},"cap":{"type":"integer"},"included":{"type":"integer"},"usage":{"type":"integer"}},"type":"object"},"usage.Period":{"properties":{"end":{"type":"string"},"source":{"description":"Source is \"calendar\" (the UTC calendar month) or \"contract\" (the usage\nperiod of the workspace's contract on the directory instance,\nSourceContract).","type":"string"},"start":{"type":"string"}},"type":"object"},"usage.ProjectLine":{"properties":{"included":{"type":"boolean"},"instances":{"items":{"$ref":"#/components/schemas/usage.InstanceLine"},"type":"array","uniqueItems":false},"name":{"type":"string"},"project_id":{"type":"string"},"status":{"type":"string"},"tenancy_mode":{"type":"string"}},"type":"object"}}},"info":{"contact":{"email":"support@revotech-group.com","name":"API Support","url":"https://github.com/revotech-group/platform-management-api"},"description":"Platform-scoped management API for workspaces, projects, instances and domains.","license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"title":"Platform Management API","version":"1.0"},"openapi":"3.2.0","paths":{"/domains":{"get":{"description":"Get a list of domains for an instance","operationId":"ListDomains","parameters":[{"description":"Instance ID","in":"query","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort order","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Search","in":"query","name":"search","schema":{"type":"string"}},{"description":"Type","in":"query","name":"type","schema":{"enum":["auth_server"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.ListDomainsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List domains","tags":["Domains"]},"post":{"description":"Register a hostname against an instance. The domain starts pending and carries the DNS challenge that must be published before it can be activated.","operationId":"CreateDomain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.CreateDomainRequest","description":"Domain to create","summary":"request"}}},"description":"Domain to create","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.CreateDomainResponse"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create domain","tags":["Domains"]}},"/domains/{domain_id}":{"delete":{"description":"Remove a domain. Refused while any app or service account is still bound to it.","operationId":"DeleteDomain","parameters":[{"description":"Domain ID","in":"path","name":"domain_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete domain","tags":["Domains"]}},"/domains/{domain_id}/verify":{"post":{"description":"Check the DNS TXT challenge for a domain and record the outcome. Does not activate the domain; activation is a separate call and is refused until verification has succeeded.","operationId":"VerifyDomain","parameters":[{"description":"Domain ID","in":"path","name":"domain_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_domain_types.VerifyDomainResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Verify domain","tags":["Domains"]}},"/instances":{"get":{"description":"List the instances of a project or a workspace. One of project_id or workspace_id is required, but for Pontive's staff, who list every instance. A token acting for a Pontive user through an actor (the Pontive MCP server) lists the instances the user's own roles reach, never a staff role's: those of the project or workspace named, else of every workspace the user belongs to.","operationId":"ListInstances","parameters":[{"description":"Filter by project ID","in":"query","name":"project_id","schema":{"type":"string"}},{"description":"Filter by workspace ID","in":"query","name":"workspace_id","schema":{"type":"string"}},{"description":"Filter by environment","in":"query","name":"environment","schema":{"enum":["production","non_production"],"type":"string"}},{"description":"Filter by the instance's own status","in":"query","name":"status","schema":{"enum":["active","paused","deleted"],"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort order","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.ListInstancesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List instances","tags":["Instances"]},"post":{"description":"Create an instance in a project. name and slug are required for non_production and must be omitted for production, which is always Production/production and limited to one per project.","operationId":"CreateInstance","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.CreateInstanceRequest","description":"Create Instance Request","summary":"request"}}},"description":"Create Instance Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Instance"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"invalid_environment, invalid_slug, slug_reserved, slug_too_long, instance_name_not_settable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"project_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"slug_conflict, prod_instance_exists, prod_instance_limit_exceeded, non_prod_instance_limit_exceeded"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create instance","tags":["Instances"]}},"/instances/{instance_id}":{"delete":{"description":"Soft-delete an instance, recoverable for 30 days: it carries purge_scheduled_at, deleted_at plus 30 days, and is purged after it. Requires {\"confirm_delete\": true}; without it the API returns 400 confirmation_required. A project keeps at least one active instance: deleting its last one returns 409 last_active_instance. A token acting for a Pontive user (the Pontive MCP server) deletes a non_production instance only; the production one is refused with 403 actor_refused, to be deleted in the dashboard.","operationId":"DeleteInstance","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.DeleteInstanceRequest","description":"Delete confirmation","summary":"request"}}},"description":"Delete confirmation","required":true},"responses":{"204":{"description":"Instance deleted successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"confirmation_required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"last_active_instance"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete instance","tags":["Instances"]},"get":{"description":"Get instance details by ID","operationId":"GetInstance","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Instance"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get instance","tags":["Instances"]},"patch":{"description":"Update an instance. name is writable on non_production instances only; renaming the production instance returns instance_name_not_settable.","operationId":"UpdateInstance","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.UpdateInstanceRequest","description":"Update Instance Request","summary":"request"}}},"description":"Update Instance Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Instance"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_name_not_settable"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update instance","tags":["Instances"]}},"/instances/{instance_id}/access":{"get":{"description":"The platform permissions the caller holds on the instance, and the roles they hold on it directly","operationId":"GetInstanceAccess","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetAccessResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"The caller's access to an instance","tags":["Access"]}},"/instances/{instance_id}/members":{"get":{"description":"List the users holding roles on the instance itself. Everyone else reaches it through its project and workspace.","operationId":"ListInstanceMembers","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"Search term matched against name and email","in":"query","name":"search","schema":{"type":"string"}},{"description":"Filter by role","in":"query","name":"roles","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort order","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.ListMembersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List an instance's members","tags":["Members"]},"post":{"description":"Grant roles on the instance to a member of its workspace (admin, developer, support or viewer). This is how a workspace member is given production access.","operationId":"CreateInstanceMember","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.AddInstanceMemberRequest","description":"Add Instance Member Request","summary":"request"}}},"description":"Add Instance Member Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetMemberResponse"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Add an instance member","tags":["Members"]}},"/instances/{instance_id}/members/{user_id}":{"delete":{"description":"Remove a member from the instance. They stay a member of the workspace, and of the project if they were one.","operationId":"DeleteInstanceMember","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Remove an instance member","tags":["Members"]},"patch":{"description":"Replace the roles a member holds on the instance","operationId":"UpdateInstanceMember","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.UpdateInstanceMemberRolesRequest","description":"Update Instance Member Roles Request","summary":"request"}}},"description":"Update Instance Member Roles Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetMemberResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Change an instance member's roles","tags":["Members"]}},"/instances/{instance_id}/pause":{"post":{"description":"Pause an instance. A project keeps at least one active instance: pausing its last one returns 409 last_active_instance.","operationId":"PauseInstance","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Instance"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"last_active_instance"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Pause instance","tags":["Instances"]}},"/instances/{instance_id}/purge":{"post":{"description":"Permanently delete a deleted instance and all its data now, rather than at its purge_scheduled_at, and retire its host label. Cannot be undone.","operationId":"PurgeInstance","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Instance purged successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Purge instance","tags":["Instances"]}},"/instances/{instance_id}/restore":{"post":{"description":"Restore a soft-deleted instance within 30 days of its deletion, until its purge_scheduled_at (409 restore_window_closed after, when it is purged).","operationId":"RestoreInstance","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Instance"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"restore_window_closed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Restore instance","tags":["Instances"]}},"/instances/{instance_id}/resume":{"post":{"description":"Resume a paused instance","operationId":"ResumeInstance","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_instance_types.Instance"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_not_found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Resume instance","tags":["Instances"]}},"/instances/{instance_id}/secret-keys":{"get":{"description":"List the instance's secret keys. Revoked keys stay listed for 30 days. Needs instance:read.","operationId":"ListSecretKeys","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.ListSecretKeysResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"List secret keys","tags":["Secret Keys"]},"post":{"description":"Create a secret key for the instance's management API. The answer carries its value once; it is never shown again. Needs instance:secret_keys.manage. An instance holds at most 10 active keys (secret_key_limit_reached); a deleted instance takes none (instance_deleted).","operationId":"CreateSecretKey","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.CreateSecretKeyRequest","description":"Create Secret Key Request","summary":"request"}}},"description":"Create Secret Key Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKey"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Create a secret key","tags":["Secret Keys"]}},"/instances/{instance_id}/secret-keys/{secret_key_id}":{"get":{"description":"One of the instance's secret keys. Needs instance:read.","operationId":"GetSecretKey","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"Secret key ID","in":"path","name":"secret_key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKey"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Get a secret key","tags":["Secret Keys"]},"patch":{"description":"Change a secret key's name, description or role. A role change takes effect within 30 seconds. Needs instance:secret_keys.manage.","operationId":"UpdateSecretKey","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"Secret key ID","in":"path","name":"secret_key_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.UpdateSecretKeyRequest","description":"Update Secret Key Request","summary":"request"}}},"description":"Update Secret Key Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKey"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Update a secret key","tags":["Secret Keys"]}},"/instances/{instance_id}/secret-keys/{secret_key_id}/revoke":{"post":{"description":"End a secret key and any still-valid previous value at once. Final: a revoked key cannot be reactivated. Needs instance:secret_keys.manage.","operationId":"RevokeSecretKey","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"Secret key ID","in":"path","name":"secret_key_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKey"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Revoke a secret key","tags":["Secret Keys"]}},"/instances/{instance_id}/secret-keys/{secret_key_id}/rotate":{"post":{"description":"Replace a secret key's value, keeping the key. The answer carries the new value once. The current value keeps working for expire_previous_in seconds (0 to 604800, default 86400). Needs instance:secret_keys.manage.","operationId":"RotateSecretKey","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"Secret key ID","in":"path","name":"secret_key_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.RotateSecretKeyRequest","description":"Rotate Secret Key Request","summary":"request"}}},"description":"Rotate Secret Key Request"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_secretkey_types.SecretKey"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Rotate a secret key","tags":["Secret Keys"]}},"/plans":{"get":{"description":"The public plan catalog, cheapest first — the offered plans, each with its base fee at both intervals, included projects and seats, allowances, caps, rates and modules — and the fixed charges (additional project, b2b uplift, FGA instance, custom domain, seat, paused project) at both intervals. Amounts are cents, read from Stripe. A retired plan is not listed; the workspaces on it keep it.","operationId":"ListPlans","parameters":[{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.ListPlansResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List plans","tags":["Plans"]}},"/projects":{"get":{"description":"Get a list of projects for a workspace","operationId":"ListProjects","parameters":[{"description":"Workspace ID","in":"query","name":"workspace_id","schema":{"type":"string"}},{"description":"Filter by status","in":"query","name":"status","schema":{"enum":["active","paused","deleted"],"type":"string"}},{"description":"Filter by region","in":"query","name":"region","schema":{"enum":["us","eu","au"],"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort order","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Search term (name depending on implementation)","in":"query","name":"search","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.ListProjectsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List projects","tags":["Projects"]},"post":{"description":"Create a new project in a workspace. The project is created with one non_production instance (Development, slug dev), returned in instances.","operationId":"CreateProject","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.CreateProjectRequest","description":"Create Project Request","summary":"request"}}},"description":"Create Project Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Project"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"invalid_slug, invalid_region, validation_error"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"slug_conflict, project_limit_exceeded"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create project","tags":["Projects"]}},"/projects/{project_id}":{"delete":{"description":"Soft-delete a project and every instance in it, recoverable for 30 days: it carries purge_scheduled_at, deleted_at plus 30 days, and is purged with its instances after it. Requires {\"confirm_delete\": true}; without it the API returns 400 confirmation_required.","operationId":"DeleteProject","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.DeleteProjectRequest","description":"Delete confirmation","summary":"request"}}},"description":"Delete confirmation","required":true},"responses":{"204":{"description":"Project deleted successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"confirmation_required"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete project","tags":["Projects"]},"get":{"description":"Get project details by ID or slug","operationId":"GetProject","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Project"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get project","tags":["Projects"]},"patch":{"description":"Update an existing project","operationId":"UpdateProject","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.UpdateProjectRequest","description":"Update Project Request","summary":"request"}}},"description":"Update Project Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Project"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update project","tags":["Projects"]}},"/projects/{project_id}/access":{"get":{"description":"The platform permissions the caller holds on the project, and the roles they hold on it directly","operationId":"GetProjectAccess","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetAccessResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"The caller's access to a project","tags":["Access"]}},"/projects/{project_id}/invitations":{"get":{"description":"List the invitations to the project","operationId":"ListProjectInvitations","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Search term matched against the invitee email","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort order","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.ListInvitationsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List a project's invitations","tags":["Invitations"]},"post":{"description":"Invite people to the project by email. Invitees who are not workspace members join the workspace too, with no role there.","operationId":"CreateProjectInvitations","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.InviteProjectMembersRequest","description":"Invite Project Members Request","summary":"request"}}},"description":"Invite Project Members Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.InviteMembersResponse"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Invite to a project","tags":["Invitations"]}},"/projects/{project_id}/invitations/{invitation_id}":{"delete":{"description":"Withdraw one of the project's invitations: it is deleted, and its link stops working.","operationId":"DeleteProjectInvitation","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}},{"description":"Notify the invitee that the invitation was withdrawn","in":"query","name":"notify_invitee","schema":{"type":"boolean"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete a project invitation","tags":["Invitations"]}},"/projects/{project_id}/invitations/{invitation_id}/resend":{"post":{"description":"Send one of the project's outstanding invitations again","operationId":"ResendProjectInvitation","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.ProjectInvitationRequest","description":"Resend Project Invitation Request","summary":"request"}}},"description":"Resend Project Invitation Request"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetInvitationResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Resend a project invitation","tags":["Invitations"]}},"/projects/{project_id}/members":{"get":{"description":"List the users holding roles on the project itself. Workspace members reach every project through the workspace and are listed there.","operationId":"ListProjectMembers","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"Search term matched against name and email","in":"query","name":"search","schema":{"type":"string"}},{"description":"Filter by role","in":"query","name":"roles","schema":{"items":{"type":"string"},"type":"array"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort order","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.ListMembersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List a project's members","tags":["Members"]},"post":{"description":"Grant roles on the project to a member of its workspace. Someone who is not a workspace member is invited instead.","operationId":"CreateProjectMember","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.AddProjectMemberRequest","description":"Add Project Member Request","summary":"request"}}},"description":"Add Project Member Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetMemberResponse"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Add a project member","tags":["Members"]}},"/projects/{project_id}/members/{user_id}":{"delete":{"description":"Remove a member from the project. They stay a member of the workspace.","operationId":"DeleteProjectMember","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Remove a project member","tags":["Members"]},"patch":{"description":"Replace the roles a member holds on the project (admin, developer or viewer)","operationId":"UpdateProjectMember","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.UpdateProjectMemberRolesRequest","description":"Update Project Member Roles Request","summary":"request"}}},"description":"Update Project Member Roles Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetMemberResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Change a project member's roles","tags":["Members"]}},"/projects/{project_id}/pause":{"post":{"description":"Pause a project","operationId":"PauseProject","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Project"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Pause project","tags":["Projects"]}},"/projects/{project_id}/purge":{"post":{"description":"Permanently delete a deleted project and its instances now, rather than at its purge_scheduled_at, and retire its slug and host labels. Cannot be undone.","operationId":"PurgeProject","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Project purged successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Purge project","tags":["Projects"]}},"/projects/{project_id}/restore":{"post":{"description":"Restore a deleted project within 30 days of its deletion, until its purge_scheduled_at (409 restore_window_closed after, when it is purged).","operationId":"RestoreProject","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Project"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"restore_window_closed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Restore project","tags":["Projects"]}},"/projects/{project_id}/resume":{"post":{"description":"Resume a paused project","operationId":"ResumeProject","parameters":[{"description":"Project ID","in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_project_types.Project"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Resume project","tags":["Projects"]}},"/unclaimed-instances":{"post":{"description":"Create a development instance with no account: a project in Pontive's holding workspace with its Development instance, a developer secret key named keyless and an app, everything an app needs to run on the developer's machine. Public and unauthenticated: it takes no credential, and one sent is ignored. The instance is deleted with its users 7 days after it is created (expires_at) unless it is claimed into a workspace first (POST /unclaimed-instances/{instance_id}/claim-links). At most 3 per IP address (IPv6 /64) per rolling 24 hours and a ceiling per ASN (429 unclaimed_instance_limit with Retry-After); 503 unclaimed_instances_unavailable with Retry-After when the service is switched off or a global cap is reached; 403 caller_blocked for a blocked address or network. With X-Idempotency-Key, a retry within 24 hours from the same address answers the same instance, counted once, with fresh secrets: the earlier claim token, key value and client secret stop working. The region is the body's, else the one nearest the caller, echoed back. Redirect URIs are loopback only (422 redirect_uri_not_loopback); a URI without a port matches any port. With encryption_key (a public EC P-256 or OKP X25519 JWK; 422 invalid_encryption_key otherwise) the secrets come back as a compact JWE in encrypted_secrets (ECDH-ES, A256GCM, kid the key's RFC 7638 thumbprint) of {client_secret, secret_key, claim_token}, never in the clear. The secrets are answered once; never log them. The response carries Sunset and Link rel=sunset.","operationId":"CreateUnclaimedInstance","parameters":[{"description":"Idempotency key: a retry within 24 hours from the same address answers the same instance","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_unclaimed_types.CreateUnclaimedInstanceRequest","description":"The instance; every field is optional","summary":"request"}}},"description":"The instance; every field is optional"},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_unclaimed_types.CreatedUnclaimedInstance"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"caller_blocked"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Request Entity Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"field_invalid_format, redirect_uri_not_loopback, invalid_region, invalid_encryption_key"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"unclaimed_instance_limit (rate_limit_error), with Retry-After"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"unclaimed_instances_unavailable, with Retry-After"}},"summary":"Create an unclaimed development instance","tags":["Unclaimed instances"]}},"/unclaimed-instances/{instance_id}":{"get":{"description":"Read an unclaimed instance: with its claim token in X-Pontive-Claim-Token, its status for polling (720 reads per instance per hour); or with a Pontive user's session and a claim link's code in X-Pontive-Claim-Code, for the dashboard's claim page, with the caller's workspaces where they may create a project, each with whether the instance fits (eligible, or reason: project_limit_exceeded, workspace_suspended, workspace_paused, workspace_cancelled) and what the claim would start there (charges, as a project create answers them); 20 session reads and claims per user per hour. Reading does not use up the code. Once claimed, the claim token keeps reading status claimed with claimed_at and nothing else of the instance. 404 unclaimed_instance_not_found for an unknown or expired instance or a wrong token, alike; 404 claim_link_invalid for an unknown, expired or used code.","operationId":"GetUnclaimedInstance","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"The claim token","in":"header","name":"X-Pontive-Claim-Token","schema":{"type":"string"}},{"description":"A claim link's code, with a Pontive user's session","in":"header","name":"X-Pontive-Claim-Code","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_unclaimed_types.UnclaimedInstance"}}},"description":"OK"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"unclaimed_instance_not_found, claim_link_invalid"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"rate_limit_error, with Retry-After"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get an unclaimed instance","tags":["Unclaimed instances"]}},"/unclaimed-instances/{instance_id}/claim":{"post":{"description":"Claim an unclaimed instance into one of the caller's workspaces, with a Pontive user's session and a claim link's code in X-Pontive-Claim-Code: its project moves into the workspace intact (ids, issuer, users, apps, keys and settings unchanged), its expiry is cleared and every claim link of it dies. Needs project:create on the workspace, as a project create does (403 otherwise). name renames the project. Answers the project, now in the workspace, with what it started charging. 404 claim_link_invalid for an unknown, expired or used code; 409 instance_claimed; 409 project_limit_exceeded when the workspace's plan holds no more projects; 403 workspace_suspended, workspace_paused or workspace_cancelled. With X-Idempotency-Key, the answer is kept for 24 hours: a retry with the same key and body is answered it again without claiming, and the same key with another body is 422 idempotency_key_reused. 20 session reads and claims per user per hour.","operationId":"ClaimUnclaimedInstance","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"The claim link's code","in":"header","name":"X-Pontive-Claim-Code","required":true,"schema":{"type":"string"}},{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_unclaimed_types.ClaimUnclaimedInstanceRequest","description":"The workspace, and a new name","summary":"request"}}},"description":"The workspace, and a new name","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_unclaimed_types.ClaimedProject"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"permission_denied, workspace_suspended, workspace_paused, workspace_cancelled"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"claim_link_invalid, unclaimed_instance_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_claimed, project_limit_exceeded"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"field_invalid_format, idempotency_key_reused"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"rate_limit_error, with Retry-After"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Claim an unclaimed instance","tags":["Unclaimed instances"]}},"/unclaimed-instances/{instance_id}/claim-links":{"post":{"description":"Mint a claim link with the claim token in X-Pontive-Claim-Token: https://app.pontive.com/claim/{instance_id}#code={code}, the code in the fragment, single use, valid for one hour. Give the person the link, never the token. Minting does not end older links; the first one used ends every other. 30 per instance and 60 per IP address per hour. 404 unclaimed_instance_not_found for an unknown or expired instance or a wrong token; 409 instance_claimed once claimed.","operationId":"CreateClaimLink","parameters":[{"description":"Instance ID","in":"path","name":"instance_id","required":true,"schema":{"type":"string"}},{"description":"The claim token","in":"header","name":"X-Pontive-Claim-Token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_unclaimed_types.ClaimLink"}}},"description":"Created"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"unclaimed_instance_not_found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"instance_claimed"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"rate_limit_error, with Retry-After"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create a claim link","tags":["Unclaimed instances"]}},"/workspaces":{"get":{"description":"The caller's workspaces. A deleted workspace is gone to its members: it is listed, with status deleted, to Pontive's staff alone, who restore it; status=deleted lists only those.","operationId":"ListWorkspaces","parameters":[{"description":"Filter by status","in":"query","name":"status","schema":{"enum":["active","pastdue","suspended","cancelled","deleted"],"type":"string"}},{"description":"Filter by plan","in":"query","name":"plan","schema":{"enum":["free","pro","enterprise"],"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort order","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Search term (slug,description,name depending on implementation)","in":"query","name":"search","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.ListWorkspacesResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List workspaces","tags":["Workspaces"]},"post":{"description":"Create a new workspace","operationId":"CreateWorkspace","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.CreateWorkspaceRequest","description":"Create Workspace Request","summary":"request"}}},"description":"Create Workspace Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Workspace"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Create workspace","tags":["Workspaces"]}},"/workspaces/{workspace_id}":{"delete":{"description":"The recoverable delete: the workspace's status becomes deleted, it disappears for its members, and Pontive's admins can restore it for 60 days (POST …/restore), until its purge_scheduled_at, when it is purged with everything it holds; POST …/purge deletes it for good now. Its contract on Pontive's billing ends with the current period, and that period's usage bills on its final invoice. A workspace is deleted last: with no live projects (409 workspace_has_projects) and nothing owed (402 outstanding_balance).","operationId":"DeleteWorkspace","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Workspace deleted successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"outstanding_balance"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"workspace_has_projects"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete workspace","tags":["Workspaces"]},"get":{"description":"One workspace. A deleted one answers 404 to its members and is returned, with status deleted and deleted_at, to Pontive's staff.","operationId":"GetWorkspace","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Workspace"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Get workspace","tags":["Workspaces"]},"patch":{"description":"Update an existing workspace. The name, description and metadata need workspace:manage; the billing contact needs workspace:billing.manage, and a request carrying only the billing contact needs nothing else, so a billing member sets where the invoices go. A token acting for a Pontive user (the Pontive MCP server) is refused the billing contact with 403 actor_refused: it is set in the dashboard.","operationId":"UpdateWorkspace","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.UpdateWorkspaceRequest","description":"Update Workspace Request","summary":"request"}}},"description":"Update Workspace Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Workspace"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update workspace","tags":["Workspaces"]}},"/workspaces/{workspace_id}/access":{"get":{"description":"The platform permissions the caller holds on the workspace, and the roles they hold on it directly","operationId":"GetWorkspaceAccess","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetAccessResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"The caller's access to a workspace","tags":["Access"]}},"/workspaces/{workspace_id}/billing":{"get":{"description":"The workspace's plan and billing interval, the plan a pending downgrade moves it to and when (scheduled_plan, scheduled_plan_at), what it holds (projects, seats, FGA instances, custom domains), what its plan grants, and the Free checklist. Pontive bills workspaces through billing-svc on the Directory instance: plan and interval changes, payment and invoices are billing's, in its portal on the dashboard's Billing page, not here. Any workspace member reads it.","operationId":"GetWorkspaceBilling","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_billing_types.BillingAccount"}}},"description":"OK"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"}},"summary":"Get the billing account","tags":["Billing"]}},"/workspaces/{workspace_id}/cancel":{"post":{"description":"Close the account: the workspace is cancelled now and read-only, and deleted 30 days later, at its deletion_scheduled_at, unless its owner restores it before. Its contract on Pontive's billing ends with the current period, and that period's usage bills on its final invoice. Needs confirm: true (400 confirmation_required); reason and feedback are for Pontive's analytics. Its owner only (403 for anyone else, its admins included).","operationId":"CancelWorkspace","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.CancelWorkspaceRequest","description":"Confirmation, and why","summary":"request"}}},"description":"Confirmation, and why","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Workspace"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"confirmation_required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Cancel workspace","tags":["Workspaces"]}},"/workspaces/{workspace_id}/invitations":{"get":{"description":"Get a list of the workspace's invitations","operationId":"ListWorkspaceInvitations","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}},{"description":"Search term matched against the invitee email","in":"query","name":"search","schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort order","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.ListInvitationsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List workspace invitations","tags":["Invitations"]},"post":{"description":"Invite people to the workspace by email","operationId":"CreateWorkspaceInvitations","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.InviteMembersRequest","description":"Invite Members Request","summary":"request"}}},"description":"Invite Members Request","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.InviteMembersResponse"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Invite members","tags":["Invitations"]}},"/workspaces/{workspace_id}/invitations/{invitation_id}":{"delete":{"description":"Withdraw an invitation: it is deleted, and its link stops working. An invitation exists only while it is open — accepting one deletes it too, and an expired one is purged.","operationId":"DeleteWorkspaceInvitation","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}},{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}},{"description":"Notify the invitee that the invitation was withdrawn","in":"query","name":"notify_invitee","schema":{"type":"boolean"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Delete an invitation","tags":["Invitations"]}},"/workspaces/{workspace_id}/invitations/{invitation_id}/resend":{"post":{"description":"Send an outstanding invitation again","operationId":"ResendWorkspaceInvitation","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}},{"description":"Invitation ID","in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.ResendInvitationRequest","description":"Resend Invitation Request","summary":"request"}}},"description":"Resend Invitation Request"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetInvitationResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Resend an invitation","tags":["Invitations"]}},"/workspaces/{workspace_id}/members":{"get":{"description":"Get a list of the workspace's members","operationId":"ListWorkspaceMembers","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}},{"description":"Search term matched against name and email","in":"query","name":"search","schema":{"type":"string"}},{"description":"Filter by role","in":"query","name":"roles","schema":{"items":{"type":"string"},"type":"array"},"style":"form"},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}},{"description":"Sort order","in":"query","name":"sort","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.ListMembersResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List workspace members","tags":["Members"]}},"/workspaces/{workspace_id}/members/{user_id}":{"delete":{"description":"Remove a member from the workspace. Removing an owner is an owner's; a token acting for a Pontive user (the Pontive MCP server) is refused it with 403 actor_refused, as ownership is the dashboard's.","operationId":"DeleteWorkspaceMember","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Remove a member","tags":["Members"]},"patch":{"description":"Replace the roles a member holds in the workspace. Granting owner, or changing an owner's roles, is an owner's; a token acting for a Pontive user (the Pontive MCP server) is refused it with 403 actor_refused, as ownership is the dashboard's.","operationId":"UpdateWorkspaceMember","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.UpdateMemberRolesRequest","description":"Update Member Roles Request","summary":"request"}}},"description":"Update Member Roles Request","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.GetMemberResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Update a member's roles","tags":["Members"]}},"/workspaces/{workspace_id}/members/{user_id}/grants":{"get":{"description":"The roles a workspace member holds on the workspace's projects and instances directly, on top of what their workspace role reaches by inheritance.","operationId":"ListWorkspaceMemberGrants","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}},{"description":"User ID","in":"path","name":"user_id","required":true,"schema":{"type":"string"}},{"description":"Page number","in":"query","name":"page","schema":{"type":"integer"}},{"description":"Page size (default 25, at most 100)","in":"query","name":"limit","schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.ListGrantsResponse"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"List a member's grants","tags":["Members"]}},"/workspaces/{workspace_id}/purge":{"post":{"description":"Delete a deleted workspace for good, now, rather than at the end of its restore window: its organization and everything under it go, and nothing restores it (GDPR erasure). The workspace must be deleted first (DELETE). Only the workspace's owner and Pontive's admins purge; anyone else, a workspace admin included, is refused with 403, as is a token acting for a user.","operationId":"PurgeWorkspace","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Workspace purged successfully"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Purge workspace","tags":["Workspaces"]}},"/workspaces/{workspace_id}/restore":{"post":{"description":"Undo a cancellation within 30 days, or a delete within 60 days (409 restore_window_closed after, at deletion_scheduled_at and purge_scheduled_at): the workspace is active again. A cancelled workspace is restored by its owner or Pontive's admins; a deleted one by Pontive's admins only (403 for anyone else). While its contract is still ending, at most until the period's end, the restore revokes the contract's cancellation: a workspace on a paid plan then bills again, so it needs a payment method on its Customer that can be charged, read from Pontive's billing at the time of the restore (402 payment_method_required with none or an expired card; 503 when billing cannot be reached); one on Free needs none. Once the contract has ended, the workspace restarts on a new contract on Free, with no card needed, and its owner upgrades from there. A suspended workspace is resumed instead.","operationId":"RestoreWorkspace","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Workspace"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"payment_method_required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"restore_window_closed"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Service Unavailable"}},"summary":"Restore workspace","tags":["Workspaces"]}},"/workspaces/{workspace_id}/resume":{"post":{"description":"Suspend's pair: a suspended workspace goes back to the status its payment is in — past_due while it still is, active once paid. One suspended for an unpaid invoice stays suspended (402 outstanding_balance): paying lifts it. Needs workspace:delete.","operationId":"ResumeWorkspace","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Workspace"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Resume workspace","tags":["Workspaces"]}},"/workspaces/{workspace_id}/suspend":{"post":{"description":"Suspend a past-due workspace: its console takes no writes but billing's until it is resumed or paid. Needs workspace:delete.","operationId":"SuspendWorkspace","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_workspace_types.Workspace"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Suspend workspace","tags":["Workspaces"]}},"/workspaces/{workspace_id}/transfer-ownership":{"post":{"description":"Hand the workspace to another member, who must already belong to it","operationId":"TransferWorkspaceOwnership","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_member_types.TransferOwnershipRequest","description":"Transfer Ownership Request","summary":"request"}}},"description":"Transfer Ownership Request","required":true},"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Internal Server Error"}},"summary":"Transfer workspace ownership","tags":["Members"]}},"/workspaces/{workspace_id}/usage":{"get":{"description":"The current calendar month: every meter pooled across the workspace's instances against its plan's allowances and caps, split by project; tracked token counts; each project and instance. Nothing is priced here. Trails real time by up to 15 minutes.","operationId":"GetWorkspaceUsage","parameters":[{"description":"Workspace ID","in":"path","name":"workspace_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/github_com_revotech-group_platform-management-api_core_billing_types.WorkspaceUsage"}}},"description":"OK"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Forbidden"}},"summary":"Workspace usage","tags":["Billing"]}}},"servers":[{"url":"https://api.pontive.com/v1"}],"tags":[{"name":"Access","x-displayName":"Access"},{"name":"Billing","x-displayName":"Billing"},{"name":"Domains","x-displayName":"Domains"},{"name":"Instances","x-displayName":"Instances"},{"name":"Invitations","x-displayName":"Invitations"},{"name":"Members","x-displayName":"Members"},{"name":"Plans","x-displayName":"Plans"},{"name":"Projects","x-displayName":"Projects"},{"name":"Secret Keys","x-displayName":"Secret Keys"},{"name":"Unclaimed instances","x-displayName":"Unclaimed instances"},{"name":"Workspaces","x-displayName":"Workspaces"}]}