List my organizations
Returns the organizations the signed-in person belongs to. Membership is read from the Home at request time and kept only for organizations whose directory record has a confirmed link; a steward of the organization is returned as org_admin, a member as org_member. Send the signed-in person's Home sign-in token in the x-home-id-token header; the gateway verifies it and the acting person is the token's subject.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the acting person from its subject.
Responses
The person's organizations
orgsobject[] · required
List my link requests
Returns the link requests the signed-in person has made, in any status, newest first. Send the signed-in person's Home sign-in token in the x-home-id-token header; the gateway verifies it and the acting person is the token's subject.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the acting person from its subject.
Responses
The person's link requests
linksobject[] · required
Request an organization link
Asks for an organization held in the Home to be linked to its directory record. The person must be a steward of that organization in the Home, which is checked at request time. Name the directory record with orgUri, or describe an organization that is not listed yet with newOrg — exactly one of the two. The request is created as pending and takes effect once a Global.Church reviewer confirms it. Repeating the same request returns the existing pending one. Send the signed-in person's Home sign-in token in the x-home-id-token header; the gateway verifies it and the acting person is the token's subject.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the acting person from its subject.
Request Body
homeOrgAddressstring · requiredThe organization's account address in the Home (
0x…).
homeOrgNamestringThe organization's
.orgname in the Home, as the app received it from the chooser. The Home's own answer takes precedence.homeDisplayNamestringThe organization's display name in the Home, as the app received it from the chooser (at most 80 characters). The Home's own answer takes precedence. A label, never evidence.
orgUristringURI of the directory record this organization is. Omit when sending
newOrg.newOrgobjectDetails of an organization that is not in the directory yet. Omit when sending
orgUri.
Responses
Link request created, or the existing pending request
linkobject · requiredA link between an organization's directory record and the organization that holds it in the Home. A steward requests the link; a Global.Church reviewer confirms it.
Publish or unpublish a link
Sets whether a confirmed link is published. The person must be a steward of the linked organization in the Home, which is checked at request time. Send the signed-in person's Home sign-in token in the x-home-id-token header; the gateway verifies it and the acting person is the token's subject.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the acting person from its subject.
Responses
Link updated
linkobject · requiredA link between an organization's directory record and the organization that holds it in the Home. A steward requests the link; a Global.Church reviewer confirms it.
