Skip to main content
POST
Lend an account to another workspace

Authorizations

Authorization
string
header
required

Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of create_account_share.

channel
enum<string>
required

Which channel service owns the account you are lending.

Available options:
linkedin,
email
account_sid
string
required

The owned account to lend. Length checked only, never prefix checked: the same field names a LinkedIn account (ln_ac_), an email account (em_ac_) or a future channel's sender, and channel is what says which.

Required string length: 18
to_email
string<email>

Default targeting: the holder team is that user's working team. Exactly one of to_email or to_team_sid.

Maximum string length: 255
to_team_sid
string

Direct targeting. Exactly one of to_email or to_team_sid; it must not be your own team.

Required string length: 18
Pattern: ^ts_tm_
planned_return_at
string | null

ISO 8601 UTC. Informational only: it drives one owner reminder email with a recall link. There is NO auto return.

Response

create success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
create
item
object
required
already_exists
boolean
required
meta
object
required