# Get user's permissions for topic via the API

**URL:** https://meta.discourse.org/t/get-users-permissions-for-topic-via-the-api/309070
**Category:** Development
**Tags:** rest-api
**Created:** [May 22, 2024, 8:19pm UTC](https://meta.discourse.org/t/get-users-permissions-for-topic-via-the-api/309070 "2024-05-22T20:19:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 22, 2024, 8:19pm UTC](https://meta.discourse.org/t/get-users-permissions-for-topic-via-the-api/309070/1 "2024-05-22T20:19:54Z")

</div>

Is there a more efficient way to get a user’s permissions for a topic than making a request to `/t/-/topicId.json`? The values I’m interested in are in the `details` property that’s returned from that request. For example:

```plaintext
details: {
can_edit: true,
notification_level: 3,
notifications_reason_id: 1,
can_move_posts: true,
can_delete: true,
can_remove_allowed_users: true,
can_invite_to: true,
can_invite_via_email: true,
can_create_post: true,
can_reply_as_new_topic: true,
...

```

I’m mostly interested in the value of `can_create_post`. I guess the most efficient way to get that would be to try and create the post on the user’s behalf, then handle any errors that are returned, but that should be a last resort.
