The account's plan and usage
GET
/v1/account
const url = 'https://api.pocketbell.dev/v1/account';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://api.pocketbell.dev/v1/account \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The account.
Media typeapplication/json
object
app_account_token
required
Set as the appAccountToken of every App Store purchase, so the purchase is tied to this account.
string format: uuid
plan
required
string
limits
required
object
sources
required
Null: no limit.
integer | null
monthly_messages
required
integer
history_days
required
integer
usage
required
object
sources
required
integer
messages_this_month
required
integer
quiet_hours
required
Minutes after midnight in time_zone; Normal notifications arrive silently between. Null: off.
object
start
required
integer
end
required
integer
time_zone
required
string
Example
{ "plan": "free"}Missing or ended session.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Which fields were wrong, for invalid_request.
Array<object>
object
field
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}