Get person details
GET
/api/v1/person/{person_id}
const url = 'https://app.prefactorai.com/api/v1/person/013xrzp12g3nqk8ns6jadrqmpgrjkeny';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.prefactorai.com/api/v1/person/013xrzp12g3nqk8ns6jadrqmpgrjkeny \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”person_id
required
Person_Id
A valid person ID
string
Example
013xrzp12g3nqk8ns6jadrqmpgrjkenyQuery Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Success
Media typeapplication/json
object
details
Person_Details
object
email
Person email address
string
id
Person_Id
A valid person ID
string
inserted_at
When the person was created
string format: date-time
name
Person name
string
team_ids
Team IDs this person belongs to
Array<string>
type
Type of resource (always ‘person’)
string
updated_at
When the person was last updated
string format: date-time
status
string
Example
{ "details": { "email": "jane@example.com", "id": "013xrzp12g3nqk8ns6jadrqmpgrjkeny", "name": "Jane Doe", "team_ids": [ "013xrzp12g3nqk8ns6jadrqmpgrjkeny" ], "title": "Engineer", "type": "person" }, "status": "success"}default
Section titled “default”Error