# Métiers

## Obtenir des informations sur la méthode

## Afficher la liste des méthodes disponibles et leur description  / syntaxe respective.

<mark style="color:blue;">`GET`</mark> `https://api.magic-bot.ovh/v1/jobs`

#### Path Parameters

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Your api key |

{% tabs %}
{% tab title="200: OK Page affichée avec succès" %}

{% endtab %}

{% tab title="401: Unauthorized Permission refusée" %}

{% endtab %}
{% endtabs %}

## Obtenir tous les métiers de votre serveur

## Afficher la liste de tous les métiers de votre serveur

<mark style="color:blue;">`GET`</mark> `https://api.magic-bot.ovh/v1/jobs/:guildId`

#### Path Parameters

| Name                                            | Type   | Description                        |
| ----------------------------------------------- | ------ | ---------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Your api key                       |
| guildId<mark style="color:red;">\*</mark>       | String | The identifier of the guild to get |

{% tabs %}
{% tab title="200: OK Liste affichée avec succès !" %}

```javascript
{
   "results": [
      {
         "guild_id": "xxxxxxxxxxxxxxxx"
         ...
      }
   ],
   "count": 1,
   "status": 200
}
```

{% endtab %}

{% tab title="404: Not Found Aucun métier n'a été trouvé pour ce serveur" %}

```javascript
{
   "error": "No job found on this server",
   "status": 404
}
```

{% endtab %}
{% endtabs %}
