OfficeX Developer Platform
// try this in browser js console
const logins = await (
await fetch(`https://officex.otterpad.cc/v1/factory/quickstart`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
org_name: "Anonymous Org",
members: [
{ name: "friend1" },
{ name: "friend2" }
],
}),
})
).json();
console.log(logins); <iframe
id="officex-iframe"
src="https://officex.app"
sandbox="allow-same-origin allow-scripts allow-downloads allow-popups"
></iframe>
<script>
const iframeElement = document.getElementById("officex-iframe");
iframeElement.onload = () => {
const data = { injected: logins };
iframeElement.contentWindow.postMessage(
{ type: "OFFICEX_INIT", data, tracer: "my-tracer" },
"https://officex.app"
);
};
</script># Simplified for demo, see API reference
POST /directory/action
POST /groups/invite
POST /permits/create
POST /webhooks/create
POST /organization/search
POST /organization/archive// Simplified for demo, see API reference
import {
IRequestCreateContact,
IResponseCreateContact
} from "@officexapp/types";
const payload: IRequestCreateContact = {
name: string;
avatar?: string;
email?: string;
is_placeholder?: boolean;
}
const result: IResponseCreateContact = await fetch(
"/contacts/create",
{ body }
)Anonymous Workspace

Learn More
Join the developer community
Last updated


