Search... K
Appearance
Start building today!
Sign up for API access to receive your API Key and App ID, then start building with the PCRecruiter API.
Get Started!
Appearance
The users endpoint is a GET only endpoint that is used to retrieve data about users within PCRecruiter.
This information is limited to basic contact information, as well as email setup information. This endpoint can be useful to sync any contact information for a user, with the information found in PCRecruiter.
The Teams field returns the list of groups (teams) that a user belongs to. This field is not included in the default response and must be explicitly requested using the Fields parameter.
Each team object includes:
Example: GET /rest/api/users?Fields=Teams
The emailaliases section of the users endpoint is used to list the outgoing email setup options for each user. This is just basic information and does not include advanced setup information for each email alias. The email aliases that are returned will only be for the username that was used to create the session token used in the authorization of this call.
GET /rest/api/users{
"method": "GET",
"url": "https://www2.pcrecruiter.net/rest/api/Users",
"headers": {
"Content-Type": "application/json",
"Authorization": "BEARER Token"
}
}{
"TotalRecords": 2,
"Results":[
{
"UserName": "SAMPLE",
"FullName": "John Doe",
"EmailAddress": "support@mainsequence.net",
"Phone": "(440) 946-5214",
"PhoneExt": null,
"ReplicationNumber": null,
"ActiveUser": true
},
{
"UserName": "APIUSER",
"FullName": "APIUSER",
"EmailAddress": null,
"Phone": null,
"PhoneExt": null,
"ReplicationNumber": null,
"ActiveUser": false
}
]
}TIP
This API call returns all usernames in the database with their contact information listed, as well as their active status in PCRecruiter.
GET /rest/api/users/{UserName}{
"method": "GET",
"url": "https://www2.pcrecruiter.net/rest/api/Users/{UserName}",
"headers": {
"Content-Type": "application/json",
"Authorization": "BEARER Token"
}
}{
"UserName": "SAMPLE",
"FullName": "John Doe",
"EmailAddress": "support@mainsequence.net",
"Phone": "(440) 946-5214",
"PhoneExt": null,
"ReplicationNumber": null,
"ActiveUser": true
}TIP
This API call returns all of the contact information for the username appended to the API call URL.
GET /rest/api/users?Fields=Teams{
"method": "GET",
"url": "https://www2.pcrecruiter.net/rest/api/Users?Fields=Teams",
"headers": {
"Content-Type": "application/json",
"Authorization": "BEARER Token"
}
}{
"TotalRecords": 2,
"Results":[
{
"UserName": "SAMPLE",
"FullName": "John Doe",
"EmailAddress": "support@mainsequence.net",
"Phone": "(440) 946-5214",
"PhoneExt": null,
"ReplicationNumber": null,
"ActiveUser": true,
"Teams": [
{
"Name": "Sales Team",
"RecordId": 12345
},
{
"Name": "East Region",
"RecordId": 67890
}
]
},
{
"UserName": "APIUSER",
"FullName": "APIUSER",
"EmailAddress": null,
"Phone": null,
"PhoneExt": null,
"ReplicationNumber": null,
"ActiveUser": false,
"Teams": []
}
]
}TIP
This API call returns all usernames with their team/group memberships included by using the Fields=Teams parameter.
GET /rest/api/users/EmailAliases{
"method": "GET",
"url": "https://www2.pcrecruiter.net/rest/api/Users/EmailAliases",
"headers": {
"Content-Type": "application/json",
"Authorization": "BEARER Token"
}
}{
"Results":[
{
"description": "Primary Email",
"email": "support@mainsequence.net",
"name": "John Doe"
},
{
"description": "Secondary Email",
"email": "lms@mainsequence.net",
"name": "John Doe"
}
]
}TIP
This API call returns all of the outgoing email setup information for the username that was used to create the session token used in the authorization of the API call.