Obtain Access Token

This example request illustrates what happens during an invalid request for an access token.

This example demonstrates a successful request to the OAuth 2.0 Token endpoint using the authorization_code grant type.

Request

POST /cis-web/oauth2/v3/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: ident.familysearch.org
Content-Length: 229

client_id=a0T3000000BfM3mEAF&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalhost%3A4567%2Fauth%2Ffamilysearch%2Fcallback&code=110-33-1035181939-66-15-37-88-12-47-24-118104-62-103685641-27-1641-1031171776225971-69

Response

HTTP/1.1 200 OK
Content-type: application/json
Date: Sun, 03 Apr 2025 10:00:00 GMT-5
Cache-control: no-store
Transfer-encoding: chunked

{
  "access_token": "<TOKEN>",
  "id_token": "<JWT-TOKEN>",
  "token_type": "Bearer"
}