Create, list, read and rename organizations; members and invitations. Every route takes Authorization: Bearer $TALKTO_API_KEY. See the overview for keys, request keys, replies and errors. Generated from /openapi.json.
List accounts
GET /v1/accountsParameters
| Parameter | In | Type | Required |
|---|---|---|---|
after |
query | string | No |
query |
query | string | No |
limit |
query | string | No |
Returns data: items (array of object), nextCursor (string or null).
Example
curl "https://talkto.sh/v1/accounts" \
-H "Authorization: Bearer $TALKTO_API_KEY"Create account
POST /v1/accountsBody
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | Yes | |
requestKey |
string | Yes |
Returns data: id (ID), organizationId (string), name (string), createdBy (string), createdAt (string), permissions (object).
Example
curl -X POST "https://talkto.sh/v1/accounts" \
-H "Authorization: Bearer $TALKTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"builds","requestKey":"a-unique-key-1"}'Get account
GET /v1/accounts/{accountId}Parameters
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | ID | Yes |
Returns data: id (ID), organizationId (string), name (string), createdBy (string), createdAt (string), permissions (object).
Example
curl "https://talkto.sh/v1/accounts/$ACCOUNT_ID" \
-H "Authorization: Bearer $TALKTO_API_KEY"Rename account
POST /v1/accounts/{accountId}/renameParameters
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | ID | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | Yes | |
requestKey |
string | Yes |
Returns data: account (object), changed (boolean).
Example
curl -X POST "https://talkto.sh/v1/accounts/$ACCOUNT_ID/rename" \
-H "Authorization: Bearer $TALKTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"builds","requestKey":"a-unique-key-1"}'List members
GET /v1/accounts/{accountId}/membersParameters
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | ID | Yes |
after |
query | string | No |
query |
query | string | No |
limit |
query | string | No |
Returns data: items (array of object), nextCursor (string or null).
Example
curl "https://talkto.sh/v1/accounts/$ACCOUNT_ID/members" \
-H "Authorization: Bearer $TALKTO_API_KEY"List invitations
GET /v1/accounts/{accountId}/invitationsParameters
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | ID | Yes |
after |
query | string | No |
Returns data: items (array of object), nextCursor (string or null).
Example
curl "https://talkto.sh/v1/accounts/$ACCOUNT_ID/invitations" \
-H "Authorization: Bearer $TALKTO_API_KEY"Send invitation
POST /v1/accounts/{accountId}/invitationsParameters
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | ID | Yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
email |
string | Yes |
Returns data: id (string), organizationId (string), email (string), state ("pending" or "accepted" or "expired" or "revoked"), createdAt (string), expiresAt (string).
Example
curl -X POST "https://talkto.sh/v1/accounts/$ACCOUNT_ID/invitations" \
-H "Authorization: Bearer $TALKTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"someone@example.com"}'Resend invitation
POST /v1/accounts/{accountId}/invitations/{invitationId}/resendParameters
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | ID | Yes |
invitationId |
path | string | Yes |
Returns data: id (string), organizationId (string), email (string), state ("pending" or "accepted" or "expired" or "revoked"), createdAt (string), expiresAt (string).
Example
curl -X POST "https://talkto.sh/v1/accounts/$ACCOUNT_ID/invitations/$INVITATION_ID/resend" \
-H "Authorization: Bearer $TALKTO_API_KEY"Cancel invitation
DELETE /v1/accounts/{accountId}/invitations/{invitationId}Parameters
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | ID | Yes |
invitationId |
path | string | Yes |
Returns data: id (string), organizationId (string), email (string), state ("pending" or "accepted" or "expired" or "revoked"), createdAt (string), expiresAt (string).
Example
curl -X DELETE "https://talkto.sh/v1/accounts/$ACCOUNT_ID/invitations/$INVITATION_ID" \
-H "Authorization: Bearer $TALKTO_API_KEY"