Member lookup
curl --request POST \
--url https://prod-auth.tktchurch.com/oauth/member-directory/lookup \
--header 'Content-Type: application/json' \
--data '
{
"identifier": "<string>"
}
'import Foundation
let parameters = ["identifier": "<string>"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/oauth/member-directory/lookup")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({identifier: '<string>'})
};
fetch('https://prod-auth.tktchurch.com/oauth/member-directory/lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/oauth/member-directory/lookup"
payload = { "identifier": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"membership_id": "m_01",
"family_name": "Diallo",
"role": "member"
}{
"error": "invalid_request",
"error_description": "Redirect URI not registered for this client"
}Member lookup
Resolve a member record (used pre-auth by invite flows).
POST
/
oauth
/
member-directory
/
lookup
Member lookup
curl --request POST \
--url https://prod-auth.tktchurch.com/oauth/member-directory/lookup \
--header 'Content-Type: application/json' \
--data '
{
"identifier": "<string>"
}
'import Foundation
let parameters = ["identifier": "<string>"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/oauth/member-directory/lookup")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({identifier: '<string>'})
};
fetch('https://prod-auth.tktchurch.com/oauth/member-directory/lookup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/oauth/member-directory/lookup"
payload = { "identifier": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"membership_id": "m_01",
"family_name": "Diallo",
"role": "member"
}{
"error": "invalid_request",
"error_description": "Redirect URI not registered for this client"
}