MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

This API is not authenticated.

Endpoints

GET api/user

Example request:
curl --request GET \
    --get "https://api-imp-services.impconcursos.com.br/api/user" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-imp-services.impconcursos.com.br/api/user"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/user

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

POST api/shopify/webhooks/orders_paid

Example request:
curl --request POST \
    "https://api-imp-services.impconcursos.com.br/api/shopify/webhooks/orders_paid" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-imp-services.impconcursos.com.br/api/shopify/webhooks/orders_paid"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/shopify/webhooks/orders_paid

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

POST api/g1/mail/queue

Example request:
curl --request POST \
    "https://api-imp-services.impconcursos.com.br/api/g1/mail/queue" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"from\": \"libbie.williamson@example.com\",
    \"from_name\": \"a\",
    \"to\": [
        \"jgutmann@example.net\"
    ],
    \"subject\": \"ipsum\",
    \"body\": \"odit\",
    \"cc\": [
        \"mcdermott.sasha@example.org\"
    ],
    \"bcc\": [
        \"clang@example.net\"
    ],
    \"reply_to\": \"mayer.cecil@example.com\",
    \"reply_to_name\": \"perferendis\"
}"
const url = new URL(
    "https://api-imp-services.impconcursos.com.br/api/g1/mail/queue"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "from": "libbie.williamson@example.com",
    "from_name": "a",
    "to": [
        "jgutmann@example.net"
    ],
    "subject": "ipsum",
    "body": "odit",
    "cc": [
        "mcdermott.sasha@example.org"
    ],
    "bcc": [
        "clang@example.net"
    ],
    "reply_to": "mayer.cecil@example.com",
    "reply_to_name": "perferendis"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/g1/mail/queue

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

from   string   

Must be a valid email address. Example: libbie.williamson@example.com

from_name   string  optional  

Example: a

to   string[]   

Must be a valid email address.

subject   string   

Example: ipsum

body   string   

Example: odit

cc   string[]  optional  

Must be a valid email address.

bcc   string[]  optional  

Must be a valid email address.

reply_to   string  optional  

Must be a valid email address. Example: mayer.cecil@example.com

reply_to_name   string  optional  

Example: perferendis