Read User
This example request illustrates how to read a contributor.
JSON
Request
GET /platform/users/agents/12345
Accept: application/x-gedcomx-v1+json
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/x-gedcomx-v1+json
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/users/agents/12345
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, max-age=604800
Transfer-encoding: chunked{
"agents" : [ {
"id" : "12345",
"links" : {
"self" : {
"href" : "https://api.familysearch.org/platform/users/agents/12345?flag=fsh"
}
},
"names" : [ {
"value" : "John Smith",
"type" : "http://familysearch.org/v1//DisplayName"
} ],
"accounts" : [ {
"accountName" : "account"
} ],
"emails" : [ {
"resource" : "mailto:[email protected]"
} ]
} ]
}
XML
Request
GET /platform/users/agents/12345
Accept: application/x-gedcomx-v1+xml
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
HTTP/1.1 200 OK
Content-type: application/x-gedcomx-v1+xml
X-processing-time: 3
Vary: Accept,Accept-Language,Accept-Encoding,Expect
Content-location: /platform/users/agents/12345
Date: Sun, 03 Apr 1836 10:00:00 GMT-5
Cache-control: no-transform, max-age=604800
Transfer-encoding: chunked<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gedcomx xmlns:fs="http://familysearch.org/v1/" xmlns="http://gedcomx.org/v1/" xmlns:atom="http://www.w3.org/2005/Atom">
<agent id="12345">
<link rel="self" href="https://api.familysearch.org/platform/users/agents/12345?flag=fsh"/>
<account>
<accountName>account</accountName>
</account>
<email resource="mailto:[email protected]"/>
<name>John Smith</name>
</agent>
</gedcomx>
Updated 5 days ago