create channel invite

POST {{baseUrl}}/channels/:channel_id/invites

Create an invite for a channel

Request Body

{"max_age"=>"<integer,null>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cnull\u003e&quot;,&quot;inviter&quot;:&quot;\u003cnull\u003e&quot;,&quot;max_age&quot;:&quot;\u003cinteger,null\u003e&quot;,&quot;created_at&quot;:&quot;\u003cstring,null-date-time\u003e&quot;,&quot;expires_at&quot;:&quot;\u003cstring,null-date-time\u003e&quot;,&quot;channel&quot;:&quot;\u003cnull\u003e&quot;,&quot;is_contact&quot;:&quot;\u003cboolean,null\u003e&quot;,&quot;friends_count&quot;:&quot;\u003cinteger,null\u003e&quot;,&quot;uses&quot;:&quot;\u003cinteger,null\u003e&quot;,&quot;max_uses&quot;:&quot;\u003cinteger,null\u003e&quot;,&quot;flags&quot;:&quot;\u003cinteger,null\u003e&quot;}