Reference
Organisation
10 routes, generated from Morse’s own OpenAPI document. Every path below hangs off the base URL, and every one needs the bearer header.
The examples are built from each route’s schema, so the shapes and types are exactly what the API declares. The values are illustrative, and no one has run them.
Your organisation, or null.
/organisationTakes up an invite to your address first.
GET/organisation
curl "$MORSE/organisation" \
-H "Authorization: Bearer $MORSE_TOKEN"Make your organisation, or change the one you made.
/organisationPUT/organisation
curl -X PUT "$MORSE/organisation" \
-H "Authorization: Bearer $MORSE_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "name": "Priya Shah" }'{
"can_manage": true,
"description": "…",
"id": "3f9c1a24-5e6f-4b31-9a77-1b2c3d4e5f60",
"logo_version": "…",
"name": "Priya Shah",
"slug": "…",
"website": "…"
}Take your company off your account.
/organisationIf you made it, it's deleted, and anyone who joined it is left without one; if you joined it, you leave it.
DELETE/organisation
curl -X DELETE "$MORSE/organisation" \
-H "Authorization: Bearer $MORSE_TOKEN"Who has been invited to your organisation, and who has joined.
/organisation/invitesOwner only.
GET/organisation/invites
curl "$MORSE/organisation/invites" \
-H "Authorization: Bearer $MORSE_TOKEN"[
{
"accepted": true,
"email": "priya@neuralarc.ai"
}
]Invite an email address; whoever signs in with it joins.
/organisation/invitesOwner only.
POST/organisation/invites
curl -X POST "$MORSE/organisation/invites" \
-H "Authorization: Bearer $MORSE_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "email": "priya@neuralarc.ai" }'{
"accepted": true,
"email": "priya@neuralarc.ai",
"emailed": "priya@neuralarc.ai"
}Withdraw an invite nobody has taken up yet.
/organisation/invites/{address}Owner only.
DELETE/organisation/invites/{address}
curl -X DELETE "$MORSE/organisation/invites/…" \
-H "Authorization: Bearer $MORSE_TOKEN"The image as the request body, its type as Content-Type.
/organisation/logoPUT/organisation/logo
curl -X PUT "$MORSE/organisation/logo" \
-H "Authorization: Bearer $MORSE_TOKEN"{
"can_manage": true,
"description": "…",
"id": "3f9c1a24-5e6f-4b31-9a77-1b2c3d4e5f60",
"logo_version": "…",
"name": "Priya Shah",
"slug": "…",
"website": "…"
}Take the logo off your organisation.
/organisation/logoOwner only.
DELETE/organisation/logo
curl -X DELETE "$MORSE/organisation/logo" \
-H "Authorization: Bearer $MORSE_TOKEN"Whether company.onmorse.com is yours to take — a courtesy; PUT guards.
/organisation/slugGET/organisation/slug
curl "$MORSE/organisation/slug?slug=%E2%80%A6" \
-H "Authorization: Bearer $MORSE_TOKEN"{
"available": true,
"reason": "…",
"slug": "…"
}Public, like a booking page's avatar: a logo is shown to the people you meet.
/organisation/{org_id}/logoCached for as long as its URL's version stays the same.
GET/organisation/{org_id}/logo
curl "$MORSE/organisation/3f9c1a24-5e6f-4b31-9a77-1b2c3d4e5f60/logo" \
-H "Authorization: Bearer $MORSE_TOKEN"