Profiles
A Swish profile is the entity to which Items and Lists belong.
post
Authorizations
Body
Responses
200
The profile has been identified
application/json
Responseall of
objectOptional
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
post
/profiles/identifyPOST /api/2025-04/profiles/identify HTTP/1.1
Host: swish.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29
{
  "email": "[email protected]"
}{
  "data": {
    "authFlow": "/customer_authentication/login"
  }
}post
Authorizations
Body
customerstringOptionalExample: 
A customer GID to create a token for.
gid://shopify/Customer/1234567890sessionstringOptionalExample: 
A session GID to link to the customer.
gid://swish/Session/abc123Responses
201
The token has been created
application/json
Responseall of
objectOptional
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
post
/profiles/tokenPOST /api/2025-04/profiles/token HTTP/1.1
Host: swish.app
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 87
{
  "customer": "gid://shopify/Customer/1234567890",
  "session": "gid://swish/Session/abc123"
}{
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
    "profile": "gid://swish/Session/abc123"
  }
}Last updated
