Account
account
Methods
Get The Authenticated Account -> { type, username, avatar_url, 2 more... }
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",
}
Response fields
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)Optional
The avatar URL for the account.
github_url: string
(format: uri)Optional
The GitHub URL of the account.
name: string
Optional
The name of the account.
Request example
200Example