# Permissions Decode

## Discord Permissions Decode Endpoint

The **Permissions Decode** endpoint is an easy way to get all of the permissions a discord bitfield permission code has, it returns the permissions an easy and readable format, in an array.

### Endpoint

* **URL**: `https://api.erensko.xyz/v1/discord-permissions`
* **Method**: <mark style="color:green;">`GET`</mark>
* **Description**: Returns all the permissions of a discord permission code.

### URL Parameters

| Key  | Value                                  |
| ---- | -------------------------------------- |
| code | The discord permission code to decode. |

### Headers

| Key           | Value                                                                                                     |
| ------------- | --------------------------------------------------------------------------------------------------------- |
| Authorization | Your own personal API key, create one by clicking [here](../api-keys/getting-your-key). This is required. |

### Request Example

{% code fullWidth="false" %}
```http
GET https://api.erensko.xyz/v1/discord-permissions?code=38383
```
{% endcode %}

### **Response Example**

```json
{
    "permissions": [
        "CREATE_INSTANT_INVITE",
        "KICK_MEMBERS",
        "BAN_MEMBERS",
        "ADMINISTRATOR",
        "MANAGE_GUILD",
        "ADD_REACTIONS",
        "VIEW_AUDIT_LOG",
        "PRIORITY_SPEAKER",
        "VIEW_CHANNEL",
        "SEND_TTS_MESSAGES",
        "ATTACH_FILES"
    ]
}
```
