# Hold a job until its time, once or every so often

`POST /jobs` · Rivier · workspace

Hold a job until its time, once or every so often. It arrives as the event jobs.<name>, signed, at the project's webhooks that listen for it. The same idempotency key never makes a second job.

- Scope: workspace:write
- Mcp: rivier_job_create
- Graphql: Mutation.workspaceJobCreate
- Sdk: workspace.job.create
- Cli: workspace job create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9_.-]{0,59}$"
    },
    "data": {
      "type": "object",
      "additionalProperties": {},
      "default": {}
    },
    "runAt": {
      "type": "string",
      "format": "date-time"
    },
    "everySeconds": {
      "type": "integer",
      "minimum": 60,
      "maximum": 2678400
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/jobs' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string"
}'
```
