> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usedora.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Rider

### 📝 Summary

This endpoint allows the creation of a new rider profile in the system. It collects essential rider details, such as personal information, contact details, and identification, enabling them to start performing delivery tasks.

***

### Requests

##### Example

<Expandable>
  ```json theme={null}
  {
    "rider_emails": [
      "kingddsassa@gmail.com"
    ],
    "commission_value": 10,
    "commission_type": "commission"
  }
  ```
</Expandable>

##### Params

<Expandable>
  **Description:**

  | Name               | Location | Type      | Required | Description |
  | ------------------ | -------- | --------- | -------- | ----------- |
  | `body`             | body     | object    | no       | none        |
  | `rider_emails`     | body     | \[string] | yes      | none        |
  | `commission_value` | body     | integer   | yes      | none        |
  | `commission_type`  | body     | string    | yes      | none        |
</Expandable>

### Responses

| HTTP Status Code                 | Meaning                                                          | Description | Data schema |
| -------------------------------- | ---------------------------------------------------------------- | ----------- | ----------- |
| <Badge color="green">200</Badge> | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)          | none        | Inline      |
| <Badge color="red">422</Badge>   | [Bad Request](https://tools.ietf.org/html/rfc7231#section-6.3.1) | none        | Inline      |

<ResponseExample>
  ```json sample response theme={null}
  {
  "status": "success",
  "data": {
  "uuid": "9dbb0847-a2ba-4cdb-b904-72fd9ab2f3bc",
  "riderid": 45689646,
  "name": "Nice Chimaobi",
  "address": "Aso housing estate, lugbe",
  "phone_number": "08028492844",
  "phone_code": "234",
  "email": "king@gmail.com",
  "vehicle_plate_number": "Ae93480G",
  "photo": "https://usedora-bucket-dev.s3.amazonaws.com/photos/oNhnn9x1fxoiPkJ3kbJUxYWNa6L4iusIChYI2B8G.jpg",
  "created_at": "2023-12-03T07:47:46.000000Z"
  }
  }
  ```
</ResponseExample>
