API referenceUsers
Create user
Create a tracked user in the company workspace
POST
/userscurl -X POST "https://api.corma.io/v1/users" \
-H "x-corma-api-key: $CORMA_OPEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"email": "[email protected]"
}'Autorisation
x-corma-api-keystringheaderobligatoireColon-separated API key ID and secret:
API_KEY_ID:API_KEY_SECRET
Paramètres
x-corma-idempotency-keystringheaderOptional client-generated key. Reusing the same key with an identical request replays the original response instead of enqueueing a duplicate task.
Corps
application/json
namestringobligatoireemailstring<email>obligatoiretypeenum<string>Une des valeurs:employeeexternalservice_accountagentpersonalEmailstring<email> | nulldepartmentKeystring | nullteamKeystring | nullDeprecated alias of departmentKey. Prefer departmentKey.
jobKeystring | nullcountryCodeenum<string> | nullUne des valeurs:ASCANDAREAFGATGAIAAFIALBARMANTAGOATAARGASMAUTAUSABWALAAZEBIHBRBBGDBELBFABGRBHRBDIBENBLMBMUBRNBOLBESATBBRABHSBTNBURBVTBWABLRBYSBLZCANCCKCODCAFCOGCHECIVCOKCHLCMRCHNCOLCPTCRICSKSCGCTECUBCPVCUWCXRCYPCZEDDRDEUDGADJIDNKDMADOMDHYDZAECUESTEGYESHERIESPETHEUEFINFJIFLKFSMFROATFFRAFXXGABGBRGRDGEOGELGUFGGYGHAGIBGRLGMBGINGLPGNQGRCSGSGTMGUMGNBGUYHKGHMDHNDHRVHTIHUNHVOIDNIRLISRIMNINDIOTIRQIRNISLITAJEYJAMJORJPNJTNKENKGZKHMKIRCOMKNAPRKKORKWTCYMKAZLAOLBNLCALIELKALBRLSOLTULUXLVALBYMARMCOMDAMNEMAFMDGMHLMIDMKDMLIMMRMNGMACMNPMTQMRTMSRMLTMUSMDVMWIMEXMYSMOZNAMNCLNERNFKNGANHBNICNLDNORNPLATNNRUNTZNIUNZLOMNPANPCIPERPYFPNGPHLPAKPOLSPMPCNPRIPSEPRTPUSPLWPRYPCZQATREURHOROUSRBRUSRWASAUSLBSYCSDNSWESGPSHNSVNSJMSVKSKMSLESMRSENSOMSURSSDSTPSUNSLVSXMSYRSWZTAATCATCDTGOTHATJKTKLTLSTKMTUNTONTMPTURTTOTUVTWNTZAUKRUGAUMIUSAURYUZBVATVCTVDRVENVGBVIRVNMVUTWLFWAKWSMXKXYMDYEMMYTYUGZAFZMBZARZWEmanagerIdstring | nullstartDateany of | nullterminationDateany of | nullidpStatusenum<string> | nullUne des valeurs:activesuspendedarchiveddeprovisionedhrStatusenum<string> | nullUne des valeurs:activeterminatedpending
Réponse
application/json201
OK
idstringobligatoiretypeenum<string>obligatoireUne des valeurs:employeeexternalservice_accountagentemailstringobligatoirepersonalEmailstring | nullobligatoirenamestringobligatoireidpStatusenum<string> | nullobligatoireUne des valeurs:activesuspendedarchiveddeprovisionedhrStatusenum<string> | nullobligatoireUne des valeurs:activeterminatedpendingjobKeystring | nullobligatoirecountryCodestring | nullobligatoiredepartmentKeystring | nullobligatoirestartDatestring<date-time> | nullobligatoireterminationDatestring<date-time> | nullobligatoireemailsUserEmail[]obligatoirejobHrJobEmbed | nullobligatoirecountryHrCountry | nullobligatoiredepartmentTeamEmbed | nullobligatoiresourcesUserSource[]obligatoireconnectorIdstring | nullobligatoireThe connector this user belongs to, as
GET /connectorsreturns its identifier. Null when no connector holds it.customFieldsmap of any ofcreatedAtstring<date-time>obligatoireThe timestamp of when this resource was created. ISO 8601 format.
updatedAtstring<date-time>obligatoireThe timestamp of the last update to this resource. ISO 8601 format.
{
"id": "string",
"type": "employee",
"email": "string",
"personalEmail": "string",
"name": "string",
"idpStatus": "active",
"hrStatus": "active",
"jobKey": "string",
"countryCode": "string",
"departmentKey": "string",
"startDate": "2026-01-15T09:30:00Z",
"terminationDate": "2026-01-15T09:30:00Z",
"emails": [
{
"email": "string",
"isPrimary": true,
"sources": [
{
"type": "integration_sync_unit",
"kind": "google",
"method": "api",
"syncUnitId": "string",
"label": "string",
"author": "string",
"isOriginating": true,
"createdAt": "2026-01-15T09:30:00Z",
"lastUpdatedAt": "2026-01-15T09:30:00Z"
}
],
"sourceKind": "manual"
}
],
"job": {
"key": "string",
"display_name": "string"
},
"country": {
"country_code": "string",
"sources": [
{
"type": "integration_sync_unit",
"kind": "google",
"method": "api",
"syncUnitId": "string",
"label": "string",
"author": "string",
"isOriginating": true,
"createdAt": "2026-01-15T09:30:00Z",
"lastUpdatedAt": "2026-01-15T09:30:00Z"
}
]
},
"department": {
"key": "string",
"displayName": "string"
},
"sources": [
{
"type": "corma",
"kind": "extension",
"author": "string",
"isOriginating": true,
"createdAt": "2026-01-15T09:30:00Z",
"lastUpdatedAt": "2026-01-15T09:30:00Z"
}
],
"connectorId": "string",
"customFields": {
"key": "string"
},
"createdAt": "2026-01-15T09:30:00Z",
"updatedAt": "2026-01-15T09:30:00Z"
}