Documentation

Account

Account

Methods

get():
get/account

Returns information about the user or organization associated with the provided API token.

Example cURL request:

curl -s \
  -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
  https://api.replicate.com/v1/account

The response will be a JSON object describing the account:

{
  "type": "organization",
  "username": "acme",
  "name": "Acme Corp, Inc.",
  "github_url": "https://github.com/acme",
}
Returns
AccountGetResponse{
type: "organization" | "user"

The account type. Can be a user or an organization.

username: string

The username of the account.

avatar_url?: string
(format: uri)

The avatar URL for the account.

github_url?: string
(format: uri)

The GitHub URL of the account.

name?: string

The name of the account.

Request example
200Example