API reference · Your application

Read your profile

GET/v1/profile

Your application’s identity, the Anis business account it acts for, and the permissions its current policy grants. Permissions are re-evaluated on every call, so read them rather than caching them.

Permissionprofile:read
AuthenticationSigned read
Anis’s answerNot signed
Staff-set limits it counts towardAll requests
.NET SDKanis.Profile.GetAsync()

Request

Signed with your key. No body, no nonce.

Headers: Signature-Input, Signature, X-Anis-Date, Accept-Language (optional). The SDKs set all of them for you.

Body: none.

Responses

StatusMeaningBody
200Success.Profile
400Refused: the signed request is badly built.Problem
401Refused: not authenticated.Problem
403Refused: not allowed.Problem
429Refused: a limit was reached.Problem
503No decision: a dependency was unavailable.Problem

The answers of this call are not signed — no Signature or Signature-Input header, success or refusal. There is nothing to verify; TLS protects them. Content-Digest and X-Request-Id are still present.

Refusals

A refusal of this call is a problem without a signature. Branch on its code; each links to what it means and what to do.

ErrorCodeStatus
Invalid credentialsinvalid_credentials401
Malformed signed requestmalformed_signed_request400
Insufficient scopeinsufficient_scope403
Source address not allowedsource_ip_not_allowed403
Rate limitedrate_limited429
Account not authorisedbinding_not_authorized403
Service unavailabledependency_unavailable503
Request timeoutrequest_timeout504
Internal errorinternal_error500

Types

Profile

FieldTypeNotes
partneralways presentobjectThe partner your application belongs to.
partner.idalways presentUUIDThe partner’s id.
applicationalways presentobjectYour application.
application.idalways presentUUIDYour application’s id. It stays the same when your keys are replaced.
application.scopesalways presentlist of stringThe permissions your application has right now. Re-read rather than cache: a change applies to your next call.
ownerAccountobjectThe Anis business account your application acts for, when shown.
ownerAccount.idUUIDThe business account’s id.
ownerAccount.displayNamestringThe business account’s name.
documentationVersionstringThe version of this documentation the Anis deployment you called matches.