Sharing Faces
A face you create is private: only you can use it. There are two ways to let other people use it.
Publishing is the broad switch. Sharing is the precise one.
published: true overrides
sharing while it is on: a published face is available to everyone regardless of who it
is shared with.
Sharing and publishing take a signed-in session:
an API key answers 403.
Share with named accounts
dana and sam can now use the face with the handle in the response.
Each entry is an existing account’s username or its email address, and the two
may be mixed in one list. Email is a second way to find an account, not an
invitation; it must already belong to one. An unknown entry returns 404 and
says which one, and nothing is changed: a list with one bad entry applies none of
itself rather than half of itself. You cannot share a face with yourself (400).
Revoking is the same call without the name. Once the list is empty, handle comes back
null.
What sharing does and does not give away
A shared face can be asked (choices, chat, decisions), and its card can be read: its name, description,basic_facts and avatar, the same fields a published face
shows. The people you share with can also put it in a group of their own.
They cannot read the documents you compiled into it, cannot compile
into it or change it, cannot share it onward, and never see its
profile addendum, which stays proprietary to you exactly as it does for
published faces.
Billing is unchanged. You pay to compile your face. Whoever asks it pays for
their own inference on their own account.
Publish to everyone
you:alice, and it appears in the published listing for
everyone. Unpublishing revokes that immediately, and returns "handle": null.
Any face owner can publish.
Finding faces other people made available to you
GET /v1/faces returns only your own faces by default. Two independent flags widen it:
include_published is
about what is open to everybody; include_shared is about what was made available to
you.
via: how a shared face reached you
Items returned by include_shared=true carry a via field:
["shared"] means the owner named your account directly.
Published faces do not carry via; they carry published: true instead.
Asking a face someone shared
Name it as@owner~alias in model, exactly as a published face:
404, the same response
a face that does not exist returns.