---
title: "Get bot writer"
method: GET
path: "/bots/{key}/writers/{userNameOrId}"
tags: ["bots"]
---

# Get bot writer

`GET /bots/{key}/writers/{userNameOrId}`

Determine whether a user is an authorized writer for bot.

## Path parameters

- `key` string, required
- `userNameOrId` string, required

## Response `200`

Success, return authorized user

- UsersResponse — A person or API client who interacts with the Refocus system.
  - `email` string — The user's email address.
  - `id` string
  - `imageUrl` string — Optional thumbnail image.
  - `name` string — First and last name.
  - `fullName` string — The user's full name.
  - `password` string
  - `createdBy` string — TODO
  - `createdAt` string — TODO
  - `updatedAt` string — TODO
  - `apiLinks` HATEOAS[] — Hypertext As The Engine Of Application State.
    - `href` string, required — URL of the related HATEOAS link you can use for subsequent calls.
    - `rel` string, required — Link relation that describes how this link relates to the previous call.
    - `method` string, required — The HTTP method required for the related call.

## Other responses

- `400` — Bad Request
- `401` — Authentication Error
- `404` — Resource Not Found
- `default` — Error

## Changes

- **2018-10-22** (v1) `b2dc0f69a84c` — 1 info
  - endpoint added
- **2018-03-30** (v1) `4ca6b20ef8df` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/salesforce/apis/refocus-api/changes/bots/:key/writers/:userNameOrId/get.md)

---

[API](https://skmtc.dev/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.dev/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/salesforce/refocus-api/revisions/42c2153b047e/schema)
