Contacts
Operations for managing contacts
Get Contact
Retrieve a contact by its ID
GET
https://dev.officex.app/v1/drive/{organization_id}/contacts/get/{contact_id}Path Parameter
organization_id (required)
string (DriveID)
Unique identifier for a drive
DriveID_abc123
contact_id (required)
string (UserID)
ID of the contact to retrieve
UserID_abcdef123456
Header Parameters
Authorization (required)
stringBearer TOKEN Bearer token for authentication
Bearer eyJhbGciOiJIUz...
Responses
success
{
"ok": {
"data": {
"id": "UserID_c5hjz-wpnfl-3v2jx-hglmv-6y7wm-o6zur-e6q2n-e7vp3-4z762-ajc7l-mqe",
"name": "manzy",
"avatar": "",
"email": "",
"notifications_url": "",
"public_note": "",
"private_note": "",
"evm_public_address": "",
"icp_principal": "c5hjz-wpnfl-3v2jx-hglmv-6y7wm-o6zur-e6q2n-e7vp3-4z762-ajc7l-mqe",
"seed_phrase": "",
"from_placeholder_user_id": "UserID_c5hjz-wpnfl-3v2jx-hglmv-6y7wm-o6zur-e6q2n-e7vp3-4z762-ajc7l-mqe",
"redeem_code": "RedeemTokenID_dd090970-fcb1-49bc-af35-69eba1a157f5",
"created_at": 1755445000597,
"last_online_ms": 0,
"external_id": null,
"external_payload": null,
"secret_entropy": "",
"permission_previews": [
"CREATE",
"VIEW",
"EDIT",
"DELETE",
"INVITE"
],
"labels": [],
"group_previews": [
{
"group_id": "GroupID_b76e4405-d850-4685-88b8-c66744255724",
"invite_id": "GroupInviteID_e8479d67-0806-4ee3-bb75-6ff5245ee21e",
"is_admin": false,
"group_name": "Group for All",
"group_avatar": ""
}
]
}
}
}Typescript Types
Request
Response
List Contacts
List contacts with optional filtering and pagination
POST
Header Parameters
Authorization (required)
stringBearer TOKEN Bearer token for authentication
Bearer eyJhbGciOiJIUz...
Request Body schema:
filters
string <= 256 characters Default: "" Filter string for contacts
page_size
integer [ 1 .. 1000 ] Default: 50 Number of items per page
50
direction
string
Default: "ASC"
Enum: "ASC" "DESC"
Sort direction
ASC
cursor_up
string or null <= 256 characters Cursor for pagination (previous page)
string
cursor_down
string or null <= 256 characters Cursor for pagination (next page)
string
Responses
Typescript Types
Request
Response
Create Contact
Create a new contact
POST
Header Parameters
Authorization (required)
stringBearer TOKEN Bearer token for authentication
Bearer eyJhbGciOiJIUz...
Request Body schema:
id (required)
string (UserID)
Unique identifier for a user
UserID_abc123
name
string <= 256 characters
Name for the contact
John Doe
avatar
string or null <= 2048 characters
Profile picture URL
notifications_url
string <= 256 characters
Alternative of email notifications
string or null <= 256 characters
Primary email for the contact
evm_public_address
string (EvmPublicAddress)
EVM public address.
public_note
string or null <= 8192 characters
Public note about the contact
Project manager for Alpha group
private_note
string or null <= 8192 characters
Private note about the contact
Primary contact for urgent issues
external_id
string (ExternalID) <= 256 characters
External identifier for integration purposes
external_payload
string (ExternalPayload) <= 8192 characters
Additional data for external integrations.
Eg Stringified JSON
Responses
Typescript Types
Request
Response
Update Contact
Update a contact'
POST
Header Parameters
Authorization (required)
stringBearer TOKEN Bearer token for authentication
Bearer eyJhbGciOiJIUz...
Request Body schema
id (required)
string (UserID)
Unique identifier for a user
UserID_67q5a-2manu-6wyl6-6onic-pvqe4-bydge-lhy4g-22nvo-hcact-5qmki-yae
name
string <= 256 characters
Name for the contact
Johnny the Kid, Doe
avatar
string or null <= 2048 characters
Profile picture URL
notifications_url
string <= 256 characters
Alternative of email notifications
string or null <= 256 characters
Primary email for the contact
evm_public_address
string (EvmPublicAddress)
EVM public address.
public_note
string or null <= 8192 characters
Public note about the contact
Senior Project Manager for Bark Group
private_note
string or null <= 8192 characters
Private note about the contact
Recently promoted, great communicator
external_id
string (ExternalID) <= 256 characters
External identifier for integration purposes
external_payload
string (ExternalPayload) <= 8192 characters
Additional data for external integrations.
Eg Stringified JSON
"{"department": "product", "title": "Lead Project Manager", "location": "Remote", "updated": true}"
Responses
Typescript Types
Request
Response
Delete Contact
Delete an existing contact
POST
Header Parameters
Authorization (required)
stringBearer TOKEN Bearer token for authentication
Bearer eyJhbGciOiJIUz...
Request Body schema
id (required)
string (UserID)
Unique identifier for a user
UserID_67q5a-2manu-6wyl6-6onic-pvqe4-bydge-lhy4g-22nvo-hcact-5qmki-yae
Responses
Typescript Types
Request
Response
Redeem a Contact
Redeems a contact and superswap replace the old user id
POST
Header Parameters
Authorization (required)
stringBearer TOKEN Bearer token for authentication
Bearer eyJhbGciOiJIUz...
Request Body schema
current_user_id
string (UserID)
Unique identifier for a user
UserID_ocjx7-nigdl-juj3n-5m3cu-2c7g3-hyqrv-hupit-c76dw-dnc67-slomg-hqe
new_user_id
string (UserID)
Unique identifier for a user
UserID_ocjx7-nigdl-juj3n-5m3cu-2c7g3-hyqrv-hupit-c76dw-dnc67-slomg-hqe
redeem_code
string Redemption code to prove authority .it starts with RedeemTokenID_
RedeemTokenID_0e24ef27-21a6-4ac7-9c13-99ab752a93b9
Responses
Typescript Types
Request
Response
Last updated