{"openapi":"3.1.0","info":{"title":"Praecise Spaces: doors for Praecise products","version":"1.0.0","description":"What Docs, document signing and Calendar offer to Praecise products, acting for a person who allowed it. For Praecise products and a person's own key with the Spaces permission."},"servers":[{"url":"https://inbox.praecise.com/api"}],"tags":[{"name":"Docs","description":"Documents of Praecise Spaces Docs, made, read and saved for the person a Praecise product calls for."},{"name":"Signing","description":"Send a PDF or a document of Docs to named people for signature, and follow what each of them does."},{"name":"Calendar","description":"A person's calendars, their own and the ones they connected, as far as they gave them to the product: busy time, events, and what changed."},{"name":"Organisations","description":"The organisations a person belongs to at Praecise and their members, for the products named to use them; someone added without a Praecise account is invited."}],"security":[{"product":[]}],"components":{"securitySchemes":{"product":{"type":"http","scheme":"bearer","description":"A Praecise product's own service token (pis_), held by its server."}}},"paths":{"/spaces/docs/templates":{"get":{"operationId":"list_templates","tags":["Docs"],"summary":"The templates the account can start a document from","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The templates the account can start a document from"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/docs":{"post":{"operationId":"create_document","tags":["Docs"],"summary":"Make a document: empty, or from a template, text, Markdown or a file","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Make a document: empty, or from a template, text, Markdown or a file"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"get":{"operationId":"list_documents","tags":["Docs"],"summary":"The documents this product can reach for the account","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The documents this product can reach for the account"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/docs/{id}":{"get":{"operationId":"get_document","tags":["Docs"],"summary":"One document: its reference, address, version and the account's role","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"One document: its reference, address, version and the account's role"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"put":{"operationId":"save_document","tags":["Docs"],"summary":"Save a new version from the version the caller read","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Save a new version from the version the caller read"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"delete":{"operationId":"trash_document","tags":["Docs"],"summary":"Move a document the product made to the bin","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Move a document the product made to the bin"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/docs/{id}/content":{"get":{"operationId":"read_document","tags":["Docs"],"summary":"The text as it is saved now: text, markdown, html or tree","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The text as it is saved now: text, markdown, html or tree"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/docs/{id}/export":{"get":{"operationId":"export_document","tags":["Docs"],"summary":"The document as a file: pdf, docx, md, html or txt","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The document as a file: pdf, docx, md, html or txt"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/docs/{id}/people":{"get":{"operationId":"list_document_people","tags":["Docs"],"summary":"Who the document is shared with","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"Who the document is shared with"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"put":{"operationId":"share_document","tags":["Docs"],"summary":"Give, change or remove what a person or the organisation may do","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Give, change or remove what a person or the organisation may do"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/requests":{"post":{"operationId":"send_for_signature","tags":["Signing"],"summary":"Send one PDF, or a document of Docs, to named people for signature","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Send one PDF, or a document of Docs, to named people for signature"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"get":{"operationId":"list_signature_requests","tags":["Signing"],"summary":"The requests this product sent for the account","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The requests this product sent for the account"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/events":{"get":{"operationId":"list_signing_events","tags":["Signing"],"summary":"What happened on this product's requests after a mark, for every account","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"What happened on this product's requests after a mark, for every account"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/requests/{id}":{"get":{"operationId":"get_signature_request","tags":["Signing"],"summary":"One request with its signers and where each is","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"One request with its signers and where each is"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/requests/{id}/events":{"get":{"operationId":"list_signature_request_events","tags":["Signing"],"summary":"The trail of one request","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The trail of one request"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/requests/{id}/signers/{signer}/remind":{"post":{"operationId":"remind_signer","tags":["Signing"],"summary":"Give a signer who has not answered a new link, mailed again","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"signer","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Give a signer who has not answered a new link, mailed again"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/requests/{id}/cancel":{"post":{"operationId":"cancel_signature_request","tags":["Signing"],"summary":"Cancel a request still waiting for signatures","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Cancel a request still waiting for signatures"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/requests/{id}/document":{"get":{"operationId":"get_sent_document","tags":["Signing"],"summary":"The PDF exactly as sent","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The PDF exactly as sent"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/requests/{id}/signed":{"get":{"operationId":"get_signed_file","tags":["Signing"],"summary":"The signed file, once everyone has signed","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The signed file, once everyone has signed"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/requests/{id}/certificate":{"get":{"operationId":"get_certificate","tags":["Signing"],"summary":"The certificate of completion","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The certificate of completion"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/signing/requests/{id}/audit":{"get":{"operationId":"get_audit_record","tags":["Signing"],"summary":"The audit record as JSON","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The audit record as JSON"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/calendar/calendars":{"get":{"operationId":"list_calendars","tags":["Calendar"],"summary":"The person's calendars the product was given","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The person's calendars the product was given"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/calendar/busy":{"get":{"operationId":"get_busy_time","tags":["Calendar"],"summary":"When the person is busy in a span, merged over their calendars","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"When the person is busy in a span, merged over their calendars"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/calendar/events":{"get":{"operationId":"list_events","tags":["Calendar"],"summary":"The events of a span, each occurrence of a repeating one","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The events of a span, each occurrence of a repeating one"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"post":{"operationId":"create_event","tags":["Calendar"],"summary":"Make an event; in a connected calendar it is written to its service at once","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Make an event; in a connected calendar it is written to its service at once"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/calendar/events/{id}":{"get":{"operationId":"get_event","tags":["Calendar"],"summary":"One event","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"One event"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"patch":{"operationId":"update_event","tags":["Calendar"],"summary":"Change an event, optionally only if it is still at the version read","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Change an event, optionally only if it is still at the version read"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"delete":{"operationId":"cancel_event","tags":["Calendar"],"summary":"Cancel an event","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Cancel an event"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/calendar/changes":{"get":{"operationId":"list_changes","tags":["Calendar"],"summary":"What changed for the person after a mark","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"What changed for the person after a mark"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/orgs":{"get":{"operationId":"list_organisations","tags":["Organisations"],"summary":"The organisations the account belongs to, with its role in each","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The organisations the account belongs to, with its role in each"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"post":{"operationId":"create_organisation","tags":["Organisations"],"summary":"Make an organisation; the account becomes its admin","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Make an organisation; the account becomes its admin"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/orgs/{id}":{"get":{"operationId":"get_organisation","tags":["Organisations"],"summary":"One organisation the account belongs to","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"One organisation the account belongs to"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/orgs/{id}/role":{"get":{"operationId":"member_role","tags":["Organisations"],"summary":"What role a person has in an organisation the account belongs to (null: not a member), with the version to cache it by","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"What role a person has in an organisation the account belongs to (null: not a member), with the version to cache it by"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/orgs/{id}/domains":{"get":{"operationId":"list_org_domains","tags":["Organisations"],"summary":"The verified domains of an organisation the account belongs to (any role)","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The verified domains of an organisation the account belongs to (any role)"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/orgs/{id}/mail":{"get":{"operationId":"org_mail","tags":["Organisations"],"summary":"An organisation's mail for a product's selectors: the mailboxes the account may use and the verified domains with whether mail is set up on each","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"An organisation's mail for a product's selectors: the mailboxes the account may use and the verified domains with whether mail is set up on each"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/orgs/{id}/mailboxes":{"get":{"operationId":"list_org_mailboxes","tags":["Organisations"],"summary":"The mailboxes of an organisation the account may use","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The mailboxes of an organisation the account may use"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/orgs/{id}/members":{"get":{"operationId":"list_members","tags":["Organisations"],"summary":"The members of an organisation the account belongs to","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."}],"responses":{"200":{"description":"The members of an organisation the account belongs to"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}},"put":{"operationId":"set_member","tags":["Organisations"],"summary":"Add a member or change a role; someone without a Praecise account is invited","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Add a member or change a role; someone without a Praecise account is invited"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}},"/spaces/orgs/{id}/members/{email}":{"delete":{"operationId":"remove_member","tags":["Organisations"],"summary":"Remove a member (an admin only)","x-first-party":true,"x-scope":"product","security":[{"product":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"email","in":"path","required":true,"schema":{"type":"string"}},{"name":"Praecise-Account","in":"header","required":true,"schema":{"type":"string"},"description":"The address of the Praecise account the product acts for."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"The same key within a day answers the first result again."}],"responses":{"200":{"description":"Remove a member (an admin only)"},"401":{"description":"No valid product token."},"403":{"description":"The account has not given this product what it asks."},"default":{"description":"Every refusal is a sentence and one machine word.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error","code"]}}}}}}}}}