Home docs switch Animal Cross: New Horizons
Post

Animal Cross: New Horizons

This server provides services for Animal Crossing: New Horizons.

This server is at https://api.hac.lp1.acbaa.srv.nintendo.net. All request and response bodies are encoded with application/x-msgpack.

Headers

HeaderDescription
Hostapi.hac.lp1.acbaa.srv.nintendo.net
User-Agentlibcurl/7.64.1 (HAC; nnEns; SDK 9.3.4.0)
Accept*/*
AuthorizationBearer ... (id token or auth token). This header is not sent in requests for /resources.
Content-Typeapplication/x-msgpack. This header is not sent in requests for /resources.
Content-LengthContent length. Only present in POST and PUT requests.

Methods

POST /api/v1/auth_token

This method provides an auth token for other requests. The Authorization header must contain the id token obtained from the baas server. User id and password are generated by the server when a new user is registered with /api/v1/users.

ParamType
idUint64
passwordString

Response on success:

FieldType
tokenString
expire_atSint64

POST /api/v1/design_players

ParamType
nameString

Response on success:

FieldType
idUint64

POST /api/v1/designs

ParamType
bodyBinary
metaBinary
net_imageBinary
preview_imageBinary

Response on success:

FieldType
idUint64

GET /api/v1/designs/<id>

Response on success:

FieldType
idUint64
bodyBinary

POST /api/v1/designs/<id>/feedback

ParamType
typeString

GET /api/v1/friend_requests

URL ParamDescription
typeString

Response on success:

Field
count
friend_requests

Friend Request:

Field
id
user_id
sent_at
meta

POST /api/v1/friend_requests

URL ParamDescription
target_user_idInteger
ParamType
metaBinary

Response on success:

FieldType
idUint64
approvedBool

PUT /api/v1/friend_requests/<id>

ParamType
actionString

GET /api/v1/friends

Response on success:

Field
count
friends

Friend:

Field
user_id

POST /api/v1/lands

ParamType
nameString
display_idUint8
in_app_idUint32
regionUint8
hemisphereUint8

Response on success:

FieldType
idUint64
passwordString

POST /api/v1/lands/updated_addresses

ParamType
user_idsList<Uint64>
sinceSint64

Response on success:

Field
accessed_at
addresses

Address:

Field
user_id
id
name
display_id
in_app_id

GET /api/v1/legacy_designs

URL ParamDescription
OffsetInteger
LimitInteger

Response on success:

Field
total
count
headers
Field
id
name
creator
village
created_at

DELETE /api/v1/legacy_designs

ParamType
id_listList<Uint64>

GET /api/v1/legacy_designs/<id>

Response on success:

FieldType
idUint64
bodyBinary

GET /api/v1/message_cards

URL ParamDescription
offsetInteger
limitInteger

Response on success:

Field
total
count
headers

Header:

Field
id
user_id
sent_at
digest
meta

POST /api/v1/message_cards

ParamType
target_idUint64
bodyBinary
metaBinary

Response on success:

FieldType
idUint64

GET /api/v1/message_cards/<id>

Response on success:

FieldType
idUint64
bodyBinary

POST /api/v1/message_cards/delete

ParamType
id_listList<Uint64>
reasonString

POST /api/v1/notification_tokens

ParamType
tokenString

POST /api/v1/reports

ParamType
typeString
categoryString
reasonString
languageString
imageBinary
user_idUint64
ugc_dataObject
contextObject

Response on success:

FieldType
report_idString

POST /api/v1/users

ParamType
nameString
birth_monthUint8
birth_dateUint8
FieldType
idUint64
passwordString

PUT /api/v1/users/<id>/land

ParamType
idUint64
passwordString

GET /api/v1/users/<id>/profile_status

Response on success:

FieldType
user_profileString
land_profileString

PUT /api/v1/users/<id>/web_service_status

ParamType
statusString

GET /api/v2/designs

URL ParamDescription
offsetInteger
limitInteger
with_binariestrue or false
q[player_id]Integer
q[design_id]Integer
q[pro]true or false

Response on success:

Field
total
count
headers

Header:

Field
id
design_player_id
design_player_name
created_at
updated_at
digest
meta
body

Errors

On error, the server sends the following response:

FieldType
categoryString
codeString

Known Errors

StatusCategoryCodeDescription
400lib3000Bad request
404lib3004Page not found or wrong http method
404lib3005User not found
500lib3997Maintenance mode (the http reason is set to Maintenance Mode as well)
401lib4001Invalid authorization header
Contents