Skip to content

Get the caller's own recorded pay

GET
/me/pay
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/me/pay \
--header 'Authorization: Bearer <token>'

Returns the pay the team recorded for the caller (the member cost in force today, monthly or hourly as stored) with its currency and since when. It reads only the caller’s own member and takes no input, so it never names another person; pay is null when nothing is recorded. No permission is required beyond an active membership.

The caller’s recorded pay.

Media typeapplication/json
object
data
required

The caller’s own recorded pay. It names no other person and takes no input.

object
pay
required

Null when the team has recorded no pay for the caller today.

Any of:
object
amount
required

The recorded amount, in currency.

number
currency
required

The workspace currency, an ISO 4217 code.

string
per
required

Whether the amount is per month or per hour.

string
Allowed values: month hour
since
required

The day it took effect, YYYY-MM-DD.

string
until
required

The last day it applies, YYYY-MM-DD; null while it has no end.

string | null

Example

{
"data": {
"pay": {
"per": "month"
}
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.