Fetch account
GET
/api/v1/account/{account_id}
const url = 'https://app.prefactorai.com/api/v1/account/013xrzp12g3nqk8ns6jadrqmpgrjkeny';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://app.prefactorai.com/api/v1/account/013xrzp12g3nqk8ns6jadrqmpgrjkeny \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”account_id
required
Account_Id
A valid account ID
string
Example
013xrzp12g3nqk8ns6jadrqmpgrjkenyQuery Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Success
Media typeapplication/json
object
details
Account_Details
object
id
Account_Id
A valid account ID
string
inserted_at
When the account was created
string format: date-time
name
Account name
string
organisation_name
purpose
Account purpose
string
type
Type of resource (always ‘account’)
string
status
string
Example
{ "details": { "id": "013xrzp12g3nqk8ns6jadrqmpgrjkeny", "inserted_at": "2024-01-01T00:00:00Z", "name": "My Account", "organisation_name": null, "purpose": "business", "type": "account", "website": null }, "status": "success"}default
Section titled “default”Error