Provider Auth Credentials

Auth credentials store your OAuth app registration (client ID, client secret, and scopes). These are the app-level credentials you get from a service like GitHub or Slack.

Provider Auth Credentials object

Attributes

object

String

String representing the object's type

id

String

Unique credentials identifier

type

String

status

Enum

Credentials status

is_default

Boolean

Whether this is the default credentials for the provider

is_managed

Boolean

Whether these credentials are managed by Metorial

name

StringNullable

Display name

description

StringNullable

Description

metadata

ObjectNullable

Custom key-value pairs for storing additional information

scopes

Array of StringsNullable

OAuth scopes requested by this credential

provider_id

String

Provider ID

created_at

Date

Timestamp when created

updated_at

Date

Timestamp when last updated

{
"object": "provider.auth_credentials",
"id": "par_4sTuVwXyZaBcDeFg",
"type": "oauth",
"status": "active",
"is_default": true,
"is_managed": true,
"name": "GitHub OAuth",
"description": "OAuth credentials for GitHub API",
"metadata": {},
"provider_id": "pro_5gHjKlMnPqRsTuVw",
"created_at": "2025-09-15T10:30:00.000Z",
"updated_at": "2026-01-10T14:45:00.000Z"
}

List provider auth credentials

Returns a paginated list of provider auth credentials.

Query Parameters

limit

NumberOptional

after

StringOptional

before

StringOptional

cursor

StringOptional

order

EnumOptional

status

UnionOptional

Filter by status (active, archived)

id

UnionOptional

Filter by credential ID(s)

provider_id

UnionOptional

Filter by provider ID(s)

provider_auth_method_id

UnionOptional

Filter by provider auth method ID(s)

origin

UnionOptional

Filter by credential origin (custom, managed)

search

StringOptional

Search by name or description

created_at

ObjectOptional

Filter provider auth credentials creation time by date range

updated_at

ObjectOptional

Filter provider auth credentials last update time by date range

GEThttp://api.metorial.com/provider-auth-credentials
curl -X GET "https://api.metorial.com/provider-auth-credentials" \
-H "Authorization: Bearer metorial_sk_..."

Get provider auth credentials

Retrieves specific provider auth credentials by ID.

URL Parameters

provider_auth_credentials_id

String

The unique identifier for the provider_auth_credentials

GEThttp://api.metorial.com/provider-auth-credentials/:provider_auth_credentials_id
curl -X GET "https://api.metorial.com/provider-auth-credentials/pro_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."

Create provider auth credentials

Creates new provider auth credentials.

Request Body

provider_id

String

Provider ID

name

StringOptional

description

StringOptional

metadata

ObjectOptional

Custom key-value pairs for storing additional information

config

Object
POSThttp://api.metorial.com/provider-auth-credentials
curl -X POST "https://api.metorial.com/provider-auth-credentials" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..." \
-d '{
"provider_id": "example_provider_id",
"name": "example_name",
"description": "example_description",
"metadata": {},
"config": {
"type": "example_type",
"client_id": "example_client_id",
"client_secret": "example_client_secret",
"scopes": [
"example_item"
]
}
}'

Update provider auth credentials

Updates specific provider auth credentials.

URL Parameters

provider_auth_credentials_id

String

The unique identifier for the provider_auth_credentials

Request Body

name

StringOptional

description

StringOptional

metadata

ObjectOptional

Custom key-value pairs for storing additional information

client_id

StringOptional

client_secret

StringOptional

scopes

Array of StringsOptional
PATCHhttp://api.metorial.com/provider-auth-credentials/:provider_auth_credentials_id
curl -X PATCH "https://api.metorial.com/provider-auth-credentials/pro_Rm4Mnheq2bfEPhBhP7SY" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..." \
-d '{
"name": "example_name",
"description": "example_description",
"metadata": {},
"client_id": "example_client_id",
"client_secret": "example_client_secret",
"scopes": [
"example_item"
]
}'

Delete provider auth credentials

Permanently deletes provider auth credentials.

URL Parameters

provider_auth_credentials_id

String

The unique identifier for the provider_auth_credentials

DELETEhttp://api.metorial.com/provider-auth-credentials/:provider_auth_credentials_id
curl -X DELETE "https://api.metorial.com/provider-auth-credentials/pro_Rm4Mnheq2bfEPhBhP7SY" \
-H "Authorization: Bearer metorial_sk_..."