Features Pricing API Docs Sign In Get Started

API Documentation

The Pathwayful API is easy to use and free for all plans.

Get Profile

Get the current authenticated user's profile information.

GET https://api.pathwayful.com/auth/profile

Headers

  • AuthorizationREQUIRED STRING
    Bearer $TOKEN

Response body

{
  "id": "uuid",
  "first_name": "John",
  "last_name": "Doe",
  "email": "user@example.com",
  "avatar_url": null,
  "locale": "en",
  "timezone": "UTC",
  "theme": "light"
}

Code Examples

curl -X GET "https://api.pathwayful.com/auth/profile" \
  -H "Authorization: Bearer $TOKEN"
// Get current user's profile
const response = await fetch('https://api.pathwayful.com/auth/profile', {
  headers: {
    'Authorization': 'Bearer ' + yourToken
  }
});

const profile = await response.json();
console.log('Profile:', profile);
# Get current user's profile
import requests

headers = {
    'Authorization': f'Bearer {your_token}'
}

response = requests.get(
    'https://api.pathwayful.com/auth/profile',
    headers=headers
)

profile = response.json()
print(f"Profile: {profile}")
// Get current user's profile
package main

import (
    "encoding/json"
    "fmt"
    "net/http"
)

func main() {
    req, _ := http.NewRequest("GET", "https://api.pathwayful.com/auth/profile", nil)
    req.Header.Set("Authorization", "Bearer "+yourToken)

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    var profile map[string]interface{}
    json.NewDecoder(resp.Body).Decode(&profile)
    fmt.Printf("Profile: %v\n", profile)
}
# Get current user's profile
require 'net/http'
require 'json'
require 'uri'

uri = URI('https://api.pathwayful.com/auth/profile')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Get.new(uri)
request['Authorization'] = "Bearer #{your_token}"

response = http.request(request)
profile = JSON.parse(response.body)
puts "Profile: #{profile}"
<?php
// Get current user's profile
$ch = curl_init('https://api.pathwayful.com/auth/profile');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer ' . $yourToken
]);

$response = curl_exec($ch);
curl_close($ch);

$profile = json_decode($response, true);
print_r($profile);