Set a Secret
POST
/v1/apps/secrets https://api.stripe.com/
Request Body
application/x-www-form-urlencoded
required
{
expand?: string[];
expires_at?: number;
name: string;
payload: string;
scope: { type: "account" | "user";user?: string; };
}
expand?: string[];
expires_at?: number;
name: string;
payload: string;
scope: { type: "account" | "user";user?: string; };
}
Responses
200 application/json
Successful response.
interface AppsSecret {
created: number;
deleted?: boolean;
expires_at?: number | null;
id: string;
livemode: boolean;
name: string;
object: "apps.secret";
payload?: string | null;
scope:SecretServiceResourceScope ;
}
created: number;
deleted?: boolean;
expires_at?: number | null;
id: string;
livemode: boolean;
name: string;
object: "apps.secret";
payload?: string | null;
scope:
}
default application/json
Error response.
interface Error {
error:ApiErrors ;
}
error:
}