POST
/
organizations
/
{organization_name}
/
projects
/
{project_name}
/
queues
/
{queue_name}
/
jobs
Go
import (
  "fmt"
  "encoding/json"
  "github.com/saladtechnologies/salad-cloud-sdk-go/pkg/saladcloudsdkconfig"
  "github.com/saladtechnologies/salad-cloud-sdk-go/pkg/saladcloudsdk"
  "github.com/saladtechnologies/salad-cloud-sdk-go/pkg/util"
  "github.com/saladtechnologies/salad-cloud-sdk-go/pkg/queues"
)

config := saladcloudsdkconfig.NewConfig()
client := saladcloudsdk.NewSaladCloudSdk(config)


request := queues.QueueJobPrototype{
  Input: []byte{},
  Metadata: []byte{},
  Webhook: util.ToPointer("Webhook"),
}

response, err := client.Queues.CreateQueueJob(context.Background(), "organizationName", "projectName", "queueName", request)
if err != nil {
  panic(err)
}

fmt.Println(response)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "input": "<any>",
  "metadata": {},
  "webhook": "<string>",
  "status": "pending",
  "events": [
    {
      "action": "created",
      "time": "2023-11-07T05:31:56Z"
    }
  ],
  "output": "<any>",
  "create_time": "2023-11-07T05:31:56Z",
  "update_time": "2023-11-07T05:31:56Z"
}
Last Updated: July 1, 2025

Authorizations

Salad-Api-Key
string
header
required

Path Parameters

organization_name
string
required

Your organization name. This identifies the billing context for the API operation and represents a security boundary for SaladCloud resources. The organization must be created before using the API, and you must be a member of the organization.

Required string length: 2 - 63
Examples:

"acme-corp"

project_name
string
required

Your project name. This represents a collection of related SaladCloud resources. The project must be created before using the API.

Required string length: 2 - 63
Examples:

"dev-env"

queue_name
string
required

The queue name.

Required string length: 2 - 63
Examples:

"fifo-queue"

Body

application/json

Represents a request to create a queue job

input
any
required

The job input. May be any valid JSON.

metadata
object

Additional metadata for the job

webhook
string<url>

The webhook to call when the job completes

Required string length: 1 - 2048

Response

Created

Represents a queue job

id
string<uuid>
required

The job identifier

input
any
required

The job input. May be any valid JSON.

status
enum<string>
required

The job status

Available options:
pending,
running,
succeeded,
cancelled,
failed
events
object[]
required

The job events

Maximum length: 1000
create_time
string<date-time>
required

The job creation time

update_time
string<date-time>
required

The job update time

metadata
object

Additional metadata for the job

webhook
string<url>

The webhook URL to notify when the job completes

Required string length: 20 - 27
output
any

The job output. May be any valid JSON.