Operative
About this API
To consume Open Gateway capabilities, an authorization flow is required through which clients obtain a token with the necessary permissions/scopes to access the requested information.
Resources 3
- Applications 4 endpoints
- Clients 4 endpoints
- Product Orders 5 endpoints
- GET List product orders
/operative /product-orders - POST Create a new product order
/operative /product-orders - POST Create the missing child consents for a (tenant, scope)
/operative /product-orders /reactivations - POST Bring a newly provisioned tenant in line with the existing product orders
/operative /product-orders /onboarding - GET Get product order detail
/operative /product-orders /{id}
- GET List product orders
Operative
About this API
To consume Open Gateway capabilities, an authorization flow is required through which clients obtain a token with the necessary permissions/scopes to access the requested information.
Resources 3
- Applications 4 endpoints
- Clients 4 endpoints
- Product Orders 5 endpoints
- GET List product orders
/operative /product-orders - POST Create a new product order
/operative /product-orders - POST Create the missing child consents for a (tenant, scope)
/operative /product-orders /reactivations - POST Bring a newly provisioned tenant in line with the existing product orders
/operative /product-orders /onboarding - GET Get product order detail
/operative /product-orders /{id}
- GET List product orders
Applications
Create a new application
/operative /applications Creates a new application in AuthN without creating a client
Request body application/json Required
-
idstring RequiredApplication identifier
-
namestring RequiredApplication name
-
emailstring (email)Contact email (defaults to gcp-mm-open-gateway@masorange.es if not provided)
-
descriptionstring RequiredApplication description
Responses
Application created successfully
-
idstringApplication identifier
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Conflict - Resource already exists
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Applications
Get an application by ID
/operative /applications /{application_id} Returns the information of an application
Path parameters
application_idstringRequired
Responses
Successful operation
-
idstringApplication identifier
-
namestringApplication name
-
emailstring (email)Contact email
-
descriptionstringApplication description
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Resource not found
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Applications
Update an application
/operative /applications /{application_id} Updates an existing application
Path parameters
application_idstringRequired
Request body application/json Required
-
emailstring (email)Updated contact email
-
descriptionstringUpdated application description
Responses
Application updated successfully
-
idstringApplication identifier
-
namestringApplication name
-
emailstring (email)Contact email
-
descriptionstringApplication description
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Resource not found
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Applications
Delete an application
/operative /applications /{application_id} Deletes an existing application
Path parameters
application_idstringRequired
Responses
Application deleted successfully
No body.
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Resource not found
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Clients
Create a new OAuth client
/operative /clients Creates a new OAuth client linked to an existing application
Request body application/json Required
-
idstring RequiredClient identifier
-
applicationIdstring RequiredApplication ID to link this client to
-
secretstring RequiredClient secret for OAuth
-
redirectUrlstring (uri)[]OAuth redirect URLs
-
displayNamestring RequiredHuman-readable client name (no underscores)
-
systemNamestring RequiredTechnical client name suffix
-
jwksUristring (uri)JWKS URI for public key management
Responses
Client created successfully
-
idstringClient identifier
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Resource not found
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Conflict - Resource already exists
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Clients
Get a client by ID
/operative /clients /{client_id} Returns the information of an OAuth client
Path parameters
client_idstringRequired
Responses
Successful operation
-
idstringClient identifier
-
applicationIdstringLinked application ID
-
displayNamestringHuman-readable client name
-
systemNamestringTechnical name suffix
-
grantTypesstring[]OAuth grant types
-
redirectUrlstring[]OAuth redirect URLs
-
typestringClient type (always "customers")
-
providerstringProvider type (always "camara")
-
jwksUristringJWKS URI
-
scopesstring[]OAuth scopes (format "purpose scope1 scope2")
-
createdAtstring (date-time)Creation timestamp
-
updatedAtstring (date-time)Last update timestamp
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Resource not found
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Clients
Update a client
/operative /clients /{client_id} Updates an existing OAuth client (scopes are immutable and managed via product orders)
Path parameters
client_idstringRequired
Request body application/json Required
-
displayNamestringUpdated human-readable name
-
systemNamestringUpdated technical name suffix
-
redirectUrlstring (uri)[]Updated redirect URLs
-
jwksUristring (uri)Updated JWKS URI
Responses
Client updated successfully
-
idstringClient identifier
-
applicationIdstringLinked application ID
-
displayNamestringHuman-readable client name
-
systemNamestringTechnical name suffix
-
grantTypesstring[]OAuth grant types
-
redirectUrlstring[]OAuth redirect URLs
-
typestringClient type (always "customers")
-
providerstringProvider type (always "camara")
-
jwksUristringJWKS URI
-
scopesstring[]OAuth scopes (format "purpose scope1 scope2")
-
createdAtstring (date-time)Creation timestamp
-
updatedAtstring (date-time)Last update timestamp
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Resource not found
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Clients
Delete a client
/operative /clients /{client_id} Deletes an existing OAuth client
Path parameters
client_idstringRequired
Responses
Client deleted successfully
No body.
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Resource not found
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Product Orders
List product orders
/operative /product-orders Returns a list of product orders with optional filters for application ID, client ID, scope, purpose, and creation date range. Supports pagination with page and size parameters.
Query parameters
application_idstringApplication identifier
client_idstringClient identifier
scopestringScope filter
purposestringPurpose filter
created_fromstring (date-time)Created from (inclusive)
created_tostring (date-time)Created to (inclusive)
pageintegersizeinteger
Responses
List of product orders
-
productOrdersobject[]-
idstring -
applicationIdstring -
clientIdstring -
scopestring -
purposestring -
createdAtstring (date-time)
-
-
totalinteger -
pageinteger -
sizeinteger
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Product Orders
Create a new product order
/operative /product-orders Creates a product order to enable a scope for an application/client combination
Request body application/json Required
-
application_idstring RequiredApplication (app owner) identifier
-
client_idstring RequiredClient identifier
-
scopestring RequiredScope to enable
-
purposestring RequiredPurpose of the data processing
Responses
Product order created successfully
-
idstringProduct order identifier
-
statusstringProduct order status
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Product Orders
Create the missing child consents for a (tenant, scope)
/operative /product-orders /reactivations Starts one Temporal workflow that sweeps every client left behind on this tenant for this scope and creates its child consent, moving the tenant's status row to COMPLETED with source=MANUAL_REACTIVATION.
Case this exists for: the tenant did not support the capability when the orders were created, so every affected client was recorded as NOT_SUPPORTED. Once the tenant supports it, this endpoint catches all of them up — one isolated, independently retryable execution per client, however many there are.
The OAuth scope is never touched: it was already granted when each order was created.
Returns immediately; consult product-order-catalog for the per-client outcome.
Request body application/json Required
-
tenantstring RequiredTenant that now supports the capability
-
scopestring RequiredScope whose NOT_SUPPORTED clients have to be caught up
Responses
Reactivation sweep accepted
-
workflowIdstringIdentifier of the sweep workflow execution
-
tenantstring -
scopestring -
statusstringALREADY_RUNNING means a sweep for this exact (tenant, scope) is still in flight.
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Product Orders
Bring a newly provisioned tenant in line with the existing product orders
/operative /product-orders /onboarding Creates a NOT_SUPPORTED status row for every existing product order in the new tenant's
schema, with source = TENANT_ONBOARDING. Until this runs, those orders have no row at
all for the tenant and are invisible to every per-tenant query, so the tenant silently
starts out of sync.
Nothing is granted and no consent is created here. Once seeded, run
POST /operative/product-orders/reactivations for each capability the tenant actually
supports, and that endpoint creates the child consents.
Idempotent and safe to re-run: rows the tenant already has are left untouched whatever
their state. The response reports how many rows were actually inserted, so a second call
returns seeded: 0.
Request body application/json Required
-
tenantstring RequiredNewly provisioned tenant to bring in line
Responses
Tenant seeded
-
tenantstring -
seededintegerRows actually inserted; 0 when the tenant was already seeded.
Problem with the client request
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Resource not found
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Product Orders
Get product order detail
/operative /product-orders /{id} Returns product order data from getProductOrder and composes tenantStatuses from listProductOrderStatus
Path parameters
idstring (uuid)Required
Responses
Product order detail
-
idstringProduct order identifier
-
applicationIdstring -
clientIdstring -
scopestring -
purposestring -
statusstringGlobal status for the product order
-
tenantStatusesobject[]-
idstring -
tenantstring -
statusstring -
sourcestring RequiredMechanism that produced the last write to this tenant's status row.
-
updatedBystring | nullIdentity of the last human actor who updated this row, if any.
-
createdAtstring (date-time) RequiredWhen this tenant's status row was created.
-
updatedAtstring (date-time) | nullWhen this tenant's status row was last updated, if it ever was.
-
finishedAtstring (date-time) | nullWhen this tenant's status reached a terminal state, if it has.
-
Unauthorized
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Client does not have sufficient permission.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Resource not found
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Server error
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Service unavailable. Typically the server is down.
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
Request time exceeded. If it happens repeatedly, consider reducing the request complexity
-
codestring RequiredCode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error