Get Current User
const options = {method: 'GET'};
fetch('https://gp-auth-module.prod.gnosispay.com/user', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://gp-auth-module.prod.gnosispay.com/userimport requests
url = "https://gp-auth-module.prod.gnosispay.com/user"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gp-auth-module.prod.gnosispay.com/user"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gp-auth-module.prod.gnosispay.com/user")
.asString();require 'uri'
require 'net/http'
url = URI("https://gp-auth-module.prod.gnosispay.com/user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"address": "<string>",
"email": "<string>",
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardholderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"kycProfile": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"email": "<string>",
"tenantId": "<string>",
"details": {
"fullName": "<string>",
"phoneNumber": "<string>",
"dateOfBirth": "2023-11-07T05:31:56Z",
"nationality": "<string>",
"countryOfResidence": "<string>",
"countryOfBirth": "<string>",
"taxIdNumber": "<string>",
"gender": "<string>",
"addresses": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country": "<string>",
"postalCode": "<string>",
"city": "<string>",
"state": "<string>",
"address1": "<string>",
"address2": "<string>"
}
]
}
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}User
Get Current User
Get the current authenticated user from the database
GET
/
user
Get Current User
const options = {method: 'GET'};
fetch('https://gp-auth-module.prod.gnosispay.com/user', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://gp-auth-module.prod.gnosispay.com/userimport requests
url = "https://gp-auth-module.prod.gnosispay.com/user"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gp-auth-module.prod.gnosispay.com/user"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gp-auth-module.prod.gnosispay.com/user")
.asString();require 'uri'
require 'net/http'
url = URI("https://gp-auth-module.prod.gnosispay.com/user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"address": "<string>",
"email": "<string>",
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardholderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"kycProfile": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"email": "<string>",
"tenantId": "<string>",
"details": {
"fullName": "<string>",
"phoneNumber": "<string>",
"dateOfBirth": "2023-11-07T05:31:56Z",
"nationality": "<string>",
"countryOfResidence": "<string>",
"countryOfBirth": "<string>",
"taxIdNumber": "<string>",
"gender": "<string>",
"addresses": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country": "<string>",
"postalCode": "<string>",
"city": "<string>",
"state": "<string>",
"address1": "<string>",
"address2": "<string>"
}
]
}
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Response
User retrieved successfully
⌘I