---
title: "Accept a user's application (gatekeeper function)"
method: POST
path: "/api/v1/users/{userId}/accept"
tags: ["users"]
---

# Accept a user's application (gatekeeper function)

`POST /api/v1/users/{userId}/accept`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/users/{userId}/accept`
- Auth: HTTP bearer

Accept a user's application (gatekeeper function)

## Path parameters

- `userId` string, required

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `userInfo` object
      - `discordId` string
      - `username` string
      - `nickname` string
      - `farmName` string
      - `checking` number
      - `landTokens` number
      - `points` number
      - `created` boolean: Whether user was newly created
  - `meta` object, required
    - `timestamp` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
