Get authenticated organization
GET
/oauth/me
const url = 'https://api.pipevest.com/v1/oauth/me';const options = { method: 'GET', headers: {Authorization: 'Bearer <token>', 'x-client-id': '<x-client-id>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pipevest.com/v1/oauth/me \ --header 'Authorization: Bearer <token>' \ --header 'x-client-id: <x-client-id>'Returns the profile of the organization the token belongs to.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Organization profile
Media typeapplication/json
object
data
object
id
string
name
string
description
string
website
string
email
string
phone
string
address
string
isActive
boolean
createdAt
string format: date-time
updatedAt
string format: date-time
credentials
Array<object>
object
id
string
name
string
clientId
string
expiresAt
string format: date-time
lastUsedAt
string format: date-time
createdAt
string format: date-time
Example
{ "data": { "id": "clx0a1b2c3d4e5f6g7h8i9j0k", "name": "Acme Investments", "isActive": true }}Authentication failed
Media typeapplication/json
object
error
string
message
string
Example
{ "error": "Unauthorized", "message": "Invalid organization authentication token"}Resource not found
Media typeapplication/json
object
error
string
message
string
Example
{ "error": "Not found", "message": "Customer not found"}