# Send a coach portal invitation `POST /api/v1/coaches/{coach_id}/portal-invite` Sends a portal invitation to the coach’s email address. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Coaches → Write**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the record belongs to. ## Path parameters - `coach_id` (integer, required) — ID of the coach in the selected sport. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/coaches/${COACH_ID:?Set COACH_ID}/portal-invite" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" ``` ## Response **200 OK** Returns the invitation result, destination address, number of enabled sports, and message ID. Example with fictional data and selected fields. ```json { "status": "success", "data": { "invited": true, "email": "sam@example.com", "enabled_sports": 1, "message_id": 18 } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found. - `422` — The coach needs an email address. - `500` — The invitation could not be prepared. - `502` — The invitation email could not be sent.