Skip to content

Get brand

GET
/v1/brands/{brandId}
curl --request GET \
--url https://api.optizmo.com/deploy/v1/brands/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: <Authorization>'

Fetches a single brand by id.

brandId
required
string format: uuid

Id of the brand to fetch.

The brand.

Media type application/json

A brand in your account.

object
id
required

The brand id accepted by the contact subscriptions endpoints and by POST /deploy/v1/contactsbrandIds field.

string format: uuid
name
required
string
enabled
required
boolean
fromAddress

The brand’s from address. Omitted when not set.

string
domain

The brand’s sending domain. Omitted when none is configured.

string
esps
required

Email service providers the brand sends through, empty when none are attached.

Array<object>
object
id
required

The ESP id.

string format: uuid
name
required
string
verticals
required

Verticals the brand falls under, empty when none are selected.

Array<object>
object
id
required

Numeric vertical code.

integer
label
required

Name of the vertical.

string
unsubscribeHandling
required
One of:

A Deploy-hosted unsubscribe landing page.

object
type
required
string
Allowed value: Deploy
useListUnsubscribeHeader
required
boolean
unsubscribePageId

Id of the Deploy-hosted unsubscribe landing page. Omitted when none is assigned.

string format: uuid
createdAt
required

Timestamp at which the brand was created.

string format: date-time
Example
{
"name": "Acme",
"verticals": [
{
"id": 5,
"label": "Technology"
}
],
"unsubscribeHandling": {
"type": "Deploy"
}
}

The brandId path parameter is not a valid UUID.

Media type application/json

Error envelope returned by every v1 endpoint for failures, following RFC 9457 Problem Details with code and errors extensions.

object
type
required

URI identifying the problem type; dereferences to its documentation.

string format: uri
status
required

HTTP status code applicable to this problem.

integer
title
required

Short, human-readable summary of the problem type.

string
detail
required

Detailed explanation specific to this occurrence.

string
code
required

Error code identifying the specific error condition.

string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error api_error contact_exists operation_in_progress
instance

URI reference identifying this specific occurrence (the request URI).

string format: uri-reference
errors

Provides additional information when the error relates to specific request fields.

Array<object>
object
detail
required

Detailed explanation for this specific field error.

string
pointer

JSON Pointer (RFC 6901) to the request body value that caused the error (e.g. /email, /attributes/firstName).

string
parameter

The URI query parameter that caused the error (e.g. pageSize, name[invalid]).

string
Example
{
"type": "https://docs.optizmo.com/deploy/error-codes#invalid_request_error",
"status": 400,
"title": "Invalid request",
"detail": "brandId must be a UUID",
"code": "invalid_request_error",
"instance": "/deploy/v1/brands/not-a-uuid",
"errors": [
{
"detail": "brandId must be a UUID"
}
]
}

Missing or invalid API key.

Media type application/json

Error envelope returned by every v1 endpoint for failures, following RFC 9457 Problem Details with code and errors extensions.

object
type
required

URI identifying the problem type; dereferences to its documentation.

string format: uri
status
required

HTTP status code applicable to this problem.

integer
title
required

Short, human-readable summary of the problem type.

string
detail
required

Detailed explanation specific to this occurrence.

string
code
required

Error code identifying the specific error condition.

string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error api_error contact_exists operation_in_progress
instance

URI reference identifying this specific occurrence (the request URI).

string format: uri-reference
errors

Provides additional information when the error relates to specific request fields.

Array<object>
object
detail
required

Detailed explanation for this specific field error.

string
pointer

JSON Pointer (RFC 6901) to the request body value that caused the error (e.g. /email, /attributes/firstName).

string
parameter

The URI query parameter that caused the error (e.g. pageSize, name[invalid]).

string
Example
{
"type": "https://docs.optizmo.com/deploy/error-codes#authentication_error",
"status": 401,
"title": "Authentication failed",
"detail": "credentials required",
"code": "authentication_error",
"instance": "/deploy/v1/contacts"
}

Permission denied.

Media type application/json

Error envelope returned by every v1 endpoint for failures, following RFC 9457 Problem Details with code and errors extensions.

object
type
required

URI identifying the problem type; dereferences to its documentation.

string format: uri
status
required

HTTP status code applicable to this problem.

integer
title
required

Short, human-readable summary of the problem type.

string
detail
required

Detailed explanation specific to this occurrence.

string
code
required

Error code identifying the specific error condition.

string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error api_error contact_exists operation_in_progress
instance

URI reference identifying this specific occurrence (the request URI).

string format: uri-reference
errors

Provides additional information when the error relates to specific request fields.

Array<object>
object
detail
required

Detailed explanation for this specific field error.

string
pointer

JSON Pointer (RFC 6901) to the request body value that caused the error (e.g. /email, /attributes/firstName).

string
parameter

The URI query parameter that caused the error (e.g. pageSize, name[invalid]).

string
Example
{
"type": "https://docs.optizmo.com/deploy/error-codes#permission_error",
"status": 403,
"title": "Permission denied",
"detail": "api key required",
"code": "permission_error",
"instance": "/deploy/v1/contacts"
}

No brand with this id exists in your account.

Media type application/json

Error envelope returned by every v1 endpoint for failures, following RFC 9457 Problem Details with code and errors extensions.

object
type
required

URI identifying the problem type; dereferences to its documentation.

string format: uri
status
required

HTTP status code applicable to this problem.

integer
title
required

Short, human-readable summary of the problem type.

string
detail
required

Detailed explanation specific to this occurrence.

string
code
required

Error code identifying the specific error condition.

string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error api_error contact_exists operation_in_progress
instance

URI reference identifying this specific occurrence (the request URI).

string format: uri-reference
errors

Provides additional information when the error relates to specific request fields.

Array<object>
object
detail
required

Detailed explanation for this specific field error.

string
pointer

JSON Pointer (RFC 6901) to the request body value that caused the error (e.g. /email, /attributes/firstName).

string
parameter

The URI query parameter that caused the error (e.g. pageSize, name[invalid]).

string
Example
{
"type": "https://docs.optizmo.com/deploy/error-codes#not_found_error",
"status": 404,
"title": "Not found",
"detail": "Brand not found",
"code": "not_found_error",
"instance": "/deploy/v1/brands/497f6eca-6276-4993-bfeb-53cbbbba6f08"
}