@@ -2,7 +2,7 @@ openapi: 3.0.3
22info :
33 title : The Agent's user-facing API
44 description : The user-facing parts of The Agent's API service (excluding system-level endpoints, chat completion, maintenance endpoints, etc.)
5- version : 3.9.3
5+ version : 4.3.1
66 license :
77 name : MIT
88 url : https://opensource.org/licenses/MIT
@@ -317,6 +317,99 @@ paths:
317317 security :
318318 - bearerAuth : []
319319
320+ /user/{user_id_hex}/connect-key :
321+ get :
322+ summary : Get user's connect key
323+ description : Retrieve the connect key for the specified user, used to merge profiles from different platforms
324+ operationId : getConnectKey
325+ tags : [Profile Connection]
326+ parameters :
327+ - name : user_id_hex
328+ in : path
329+ required : true
330+ schema :
331+ type : string
332+ description : User ID in hexadecimal format
333+ responses :
334+ " 200 " :
335+ description : Connect key retrieved successfully
336+ content :
337+ application/json :
338+ schema :
339+ $ref : " #/components/schemas/ConnectKeyResponse"
340+ " 401 " :
341+ $ref : " #/components/responses/UnauthorizedError"
342+ " 403 " :
343+ $ref : " #/components/responses/ForbiddenError"
344+ " 500 " :
345+ $ref : " #/components/responses/ServerError"
346+ security :
347+ - bearerAuth : []
348+
349+ /user/{user_id_hex}/regenerate-connect-key :
350+ post :
351+ summary : Regenerate user's connect key
352+ description : Generate a new connect key for the specified user, invalidating the old key
353+ operationId : regenerateConnectKey
354+ tags : [Profile Connection]
355+ parameters :
356+ - name : user_id_hex
357+ in : path
358+ required : true
359+ schema :
360+ type : string
361+ description : User ID in hexadecimal format
362+ responses :
363+ " 200 " :
364+ description : Connect key regenerated successfully
365+ content :
366+ application/json :
367+ schema :
368+ $ref : " #/components/schemas/ConnectKeyResponse"
369+ " 401 " :
370+ $ref : " #/components/responses/UnauthorizedError"
371+ " 403 " :
372+ $ref : " #/components/responses/ForbiddenError"
373+ " 500 " :
374+ $ref : " #/components/responses/ServerError"
375+ security :
376+ - bearerAuth : []
377+
378+ /user/{user_id_hex}/connect-key/{connect_key}/merge :
379+ post :
380+ summary : Connect profiles from different platforms
381+ description : Merge two user profiles from different platforms (e.g., Telegram and WhatsApp) into a single unified profile
382+ operationId : connectProfiles
383+ tags : [Profile Connection]
384+ parameters :
385+ - name : user_id_hex
386+ in : path
387+ required : true
388+ schema :
389+ type : string
390+ description : User ID in hexadecimal format (the requester)
391+ - name : connect_key
392+ in : path
393+ required : true
394+ schema :
395+ type : string
396+ description : Connect key of the target profile to merge with
397+ responses :
398+ " 200 " :
399+ description : Profiles connected successfully
400+ content :
401+ application/json :
402+ schema :
403+ $ref : " #/components/schemas/SettingsLinkResponse"
404+ " 401 " :
405+ $ref : " #/components/responses/UnauthorizedError"
406+ " 403 " :
407+ $ref : " #/components/responses/ForbiddenError"
408+ " 500 " :
409+ $ref : " #/components/responses/ServerError"
410+ security :
411+ - bearerAuth : []
412+
320413components :
321414 securitySchemes :
322415 bearerAuth :
@@ -378,6 +471,10 @@ components:
378471 UserSettingsPayload :
379472 type : object
380473 properties :
474+ full_name :
475+ type : string
476+ nullable : true
477+ description : User's full name
381478 open_ai_key :
382479 type : string
383480 nullable : true
@@ -386,6 +483,10 @@ components:
386483 type : string
387484 nullable : true
388485 description : Anthropic API key
486+ google_ai_key :
487+ type : string
488+ nullable : true
489+ description : Google AI API key
389490 perplexity_key :
390491 type : string
391492 nullable : true
@@ -502,6 +603,10 @@ components:
502603 type : string
503604 nullable : true
504605 description : Anthropic API key (masked)
606+ google_ai_key :
607+ type : string
608+ nullable : true
609+ description : Google AI API key (masked)
505610 perplexity_key :
506611 type : string
507612 nullable : true
@@ -867,6 +972,26 @@ components:
867972 required :
868973 - settings_link
869974
975+ ConnectKeyResponse :
976+ type : object
977+ properties :
978+ connect_key :
979+ type : string
980+ nullable : false
981+ description : Connect key, used to merge profiles from different platforms
982+ required :
983+ - connect_key
984+
985+ SettingsLinkResponse :
986+ type : object
987+ properties :
988+ settings_link :
989+ type : string
990+ nullable : false
991+ description : Link to the settings page
992+ required :
993+ - settings_link
994+
870995 ErrorResponse :
871996 type : object
872997 properties :
0 commit comments