Skip to main content
POST
Create Program Gateway
POST//
Create a new Credit Program Gateway. Use this endpoint to configure your Program Gateway to receive gateway requests from Marqeta’s credit platform. You can create multiple Program Gateways, but only one can be active per credit program.
Note
To create a Program Gateway, you must have consumer or admin credentials.

Request body

Sample request body

JSON

Response body

Authorizations

Authorization
string
header
required

Token used to verify user identity and also authorize user to use service

Body

application/json

Contains information relevant to creating a Credit Program Gateway.

url
string
required

URL of the Program Gateway endpoint hosted in your environment and configured to receive authorization requests made by the Marqeta platform. Must be HTTPS.

Maximum string length: 250
Pattern: (?!^ +$)^.+$
name
string
required

Name of the Program Gateway.

Maximum string length: 255
basic_auth_password
string
required

Basic Authentication password for authenticating your environment.

Required string length: 20 - 50
Pattern: (?!^ +$)^.+$
basic_auth_username
string
required

Basic Authentication username for authenticating your environment.

Maximum string length: 50
Pattern: (?!^ +$)^.+$
mtls
boolean
default:false

Indicates whether the Program Gateway uses mutual Transport Layer Security (mTLS).

token
string

Unique identifier of the Program Gateway.

If you do not include a token, the system generates one automatically. As this token is necessary for use in other calls, it is recommended that you define a simple and easy to remember string rather than letting the system generate a token for you. This value cannot be updated.

Maximum string length: 36
active
boolean
default:true

Indicates whether the Program Gateway is active.

custom_header
object

Additional custom information included in the HTTP header. For example, this might contain security information, along with Basic Authentication, when making a Program Gateway request. Custom headers also appear in the associated webhook's notifications.

timeout_millis
integer
default:2000

Total timeout for Program Gateway calls, in milliseconds.

Required range: 1 <= x <= 2000

Response

Expected response

Contains information relevant to a Credit Program Gateway.

url
string

URL of the Program Gateway endpoint hosted in your environment and configured to receive authorization requests made by the Marqeta platform.

mtls
boolean

Indicates whether the Program Gateway uses mutual Transport Layer Security (mTLS).

name
string

Name of the Program Gateway.

token
string

Unique identifier of the Program Gateway.

active
boolean
default:true

Indicates whether the Program Gateway is active.

created_time
string<date-time>

Date and time when the Program Gateway was created on Marqeta's credit platform, in UTC.

updated_time
string<date-time>

Date and time when the Program Gateway was last updated on Marqeta's credit platform, in UTC.

custom_header
object

Additional custom information included in the HTTP header.

timeout_millis
integer

Total timeout for Program Gateway calls, in milliseconds.

Required range: x <= 2000
basic_auth_password
string

Basic Authentication password for authenticating your environment.

basic_auth_username
string

Basic Authentication username for authenticating your environment.